]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Enable BGX LMAC's RX/TX only after VF is up
authorSunil Goutham <sgoutham@cavium.com>
Wed, 2 Dec 2015 10:06:17 +0000 (15:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2015 20:58:50 +0000 (15:58 -0500)
commit165f9d4a78c0fc55cad9516b4f896ddc41d82db5
tree96c41f3f33164d7591aafb330b9cb2001786ad60
parentfcd8100f0882544b3ce0d9cc2d650791cccbd383
net: thunderx: Enable BGX LMAC's RX/TX only after VF is up

Enable or disable BGX LMAC's RX/TX based on corresponding VF's
status. If otherwise, when multiple LMAC's physical link is up
then packets from all LMAC's whose corresponding VF is not yet
initialized will get forwarded to VF0. This is due to VNIC's default
configuration where CPI, RSSI e.t.c point to VF0/QSET0/RQ0.

This patch will prevent multiple copies of packets on VF0.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h