]> 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)
commit00a4ed7b83a3db525fa6e34dcae67d3d9fd42bfd
tree2d5465e0b14fda3d836c84d2cb7e834e71818a08
parent3e694f88f5e7592b9cb0cb4c4770fafdf5475e02
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