]> 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)
commit5c46df0754831878a12aec6e940b066f1e29a004
tree96c41f3f33164d7591aafb330b9cb2001786ad60
parentf03d718de3ba1bde03e0ae840685b82241c00612
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