• J
    IB/mthca: multiple fixes for multicast group handling · 5ceb7455
    Jack Morgenstein 提交于
    Multicast group management fixes:
    . Fix leak of mailbox memory in error handling on multicast group operations.
    . Free AMGM indices at detach and in attach error handling.
    . Fix amount to shift for aligning next_gid_index in mailbox: it
      starts at bit 6, not bit 5.
    . Allocate AMGM index after end of MGM table, in the range num_mgms to
      multicast table size - 1. Add some BUG_ON checks to catch cases
      where the index falls in the MGM hash area.
    . Initialize the list of QPs in a newly-allocated group from AMGM to 0
      This is necessary since when a group is moved from AMGM to MGM (in the
      case where the MGM entry has been emptied of QPs), the AMGM entry is
      not reset to 0 (and we don't want an extra command to do that).
    Signed-off-by: NJack Morgenstein <jackm@mellanox.co.il>
    Signed-off-by: NMichael S. Tsirkin <mst@mellanox.co.il>
    Signed-off-by: NRoland Dreier <rolandd@cisco.com>
    5ceb7455
mthca_mcg.c 9.6 KB