]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commita3097bda78c7fb41fd3091ffb70bf7bd946e6997
tree2d5465e0b14fda3d836c84d2cb7e834e71818a08
parentb4cddbd6dd9b3b9e08c26d8b7247e4e011092117
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