]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: SR-IOV version compatibility bugfix
authorAriel Elior <ariele@broadcom.com>
Wed, 23 Jan 2013 03:21:54 +0000 (03:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2013 18:58:30 +0000 (13:58 -0500)
commitff02a7baead1fb27dda58c8a2bb8bdb2d55ecfeb
tree7db74a71be645a8fb774340bc3829d4492d5eb4d
parent0a1672d2e0bfa95b09af5563f21ba0a2635b1d11
bnx2x: SR-IOV version compatibility bugfix

When posting a message on the bulletin board, the PF calculates crc
over the message and places the result in the message. When the VF
samples the Bulletin Board it copies the message aside and validates
this crc. The length of the message is crucial here and must be the
same in both parties. Since the PF is running in the Hypervisor and
the VF is running in a Vm, they can possibly be of different versions.
As the Bulletin Board is designed to grow forward in future versions,
in the VF the length must not be the size of the message structure
but instead it should be a field in the message itself.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@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_vfpf.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h