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)
commitbc69fdfc6c13b7350be9bcb48328d8f231ed98bb
tree96c41f3f33164d7591aafb330b9cb2001786ad60
parent0b72a9a1060e7547e71e7f600849a2d3006bf63a
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