• Ariel Elior's avatar
    bnx2x: SR-IOV version compatibility bugfix · 4c133c39
    Ariel Elior authored
    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: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4c133c39
bnx2x_vfpf.c 45.8 KB