android_kernel_xiaomi_sdm845/drivers/infiniband/ulp/ipoib
Leonid Arsh 7a343d4c46 IPoIB: P_Key change event handling
This patch causes the network interface to respond to P_Key change
events correctly.  As a result, you'll see a child interface in the
"RUNNING" state (netif_carrier_on()) only when the corresponding P_Key
is configured by the SM.  When SM removes a P_Key, the "RUNNING" state
will be disabled for the corresponding network interface.  To
implement this, I added IB_EVENT_PKEY_CHANGE event handling.  To
prevent flushing the device before the device is open by the "delay
open" mechanism, I added an additional device flag called
IPOIB_FLAG_INITIALIZED.

This also prevents the child network interface from trying to join to
multicast groups until the PKEY is configured.  We used to get error
messages like:

    ib0.f2f2: couldn't attach QP to multicast group ff12:401b:f2f2:0:0:0:ffff:ffff

in this case.  To fix this, I just check IPOIB_FLAG_OPER_UP flag in
ipoib_set_mcast_list().

Signed-off-by: Leonid Arsh <leonida@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-03-24 15:47:30 -08:00
..
ipoib_fs.c [IPoIB] add path record information in debugfs 2005-11-10 10:22:49 -08:00
ipoib_ib.c IPoIB: P_Key change event handling 2006-03-24 15:47:30 -08:00
ipoib_main.c IPoIB: P_Key change event handling 2006-03-24 15:47:30 -08:00
ipoib_multicast.c [INFINIBAND] ipoib: Remove leftover use of neigh_ops->destructor 2006-03-20 22:46:40 -08:00
ipoib_verbs.c IPoIB: P_Key change event handling 2006-03-24 15:47:30 -08:00
ipoib_vlan.c IB: convert from semaphores to mutexes 2006-01-13 14:51:39 -08:00
ipoib.h IPoIB: P_Key change event handling 2006-03-24 15:47:30 -08:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00