• Y
    qed: PF-VF resource negotiation · 1cf2b1a9
    Yuval Mintz 提交于
    One of the goals of the vf's first message to the PF [acquire]
    is to learn about the number of resources available to it [macs, vlans,
    etc.]. This is done via negotiation - the VF requires a set of resources,
    which the PF either approves or disaproves and sends a smaller set of
    resources as alternative. In this later case, the VF is then expected to
    either abort the probe or re-send the acquire message with less
    required resources.
    
    While this infrastructure exists since the initial submision of qed
    SRIOV support, it's in fact completely inoperational - PF isn't really
    looking into the resources the VF has asked for and is never going to
    reply to the VF that it lacks resources.
    
    This patch addresses this flow, fixing it and allowing the PF and VF
    to actually agree on a set of resources.
    Signed-off-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    1cf2b1a9
qed_sriov.c 97.8 KB