Skip to content
  • Or Gerlitz's avatar
    net/mlx5: E-Switch, Add support for the sriov offloads mode · 69697b6e
    Or Gerlitz authored
    
    
    Unlike the legacy mode, here, forwarding rules are not learned by the
    driver per events on macs set by VFs/VMs into their vports, but rather
    should be programmed by higher-level SW entities.
    
    Saying that, still, in the offloads mode (SRIOV_OFFLOADS), two flow
    groups are created by the driver for management (slow path) purposes:
    
    The first group will be used for sending packets over e-switch vports
    from the host OS where the e-switch management code runs, to be
    received by VFs.
    
    The second group will be used by a miss rule which forwards packets toward
    the e-switch manager. Further logic will trap these packets such that
    the receiving net-device as seen by the networking stack is the representor
    of the vport that sent the packet over the e-switch data-path.
    
    Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    69697b6e