]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix VF stats sync
authorAriel Elior <ariele@broadcom.com>
Tue, 27 Aug 2013 22:13:04 +0000 (01:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2013 02:03:04 +0000 (22:03 -0400)
commit680c3583841010e1fc75636066be67501ea647e5
tree2d5465e0b14fda3d836c84d2cb7e834e71818a08
parente800a9f4840743e85da8eb53e32766b6317fa43c
bnx2x: Fix VF stats sync

Since the PF gathers statistics for the VF, when the VF is about to unload
we must synchronize the release of its statistics buffer with the PF, so that
no DMA operation will be made to that address after the buffer release.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h