On Fri, 2019-07-26 at 20:18 +0200, Davide Caratti wrote: > ConnectX-3 Pro can offload transmission of VLAN packets with VXLAN > inside: > enable tunnel offloads in dev->vlan_features, like it's done with > other > NIC drivers (e.g. be2net and ixgbe). > > It's no more necessary to change dev->hw_enc_features when VXLAN are > added > or removed, since .ndo_features_check() already checks for VXLAN > packet > where the UDP destination port matches the configured value. Just set > dev->hw_enc_features when the NIC is initialized, so that overlying > VLAN > can correctly inherit the tunnel offload capabilities. > > Changes since v1: > - avoid flipping hw_enc_features, instead of calling netdev > notifiers, > thanks to Saeed Mahameed > - squash two patches into a single one > > CC: Paolo Abeni <[email protected]> > CC: Marcelo Ricardo Leitner <[email protected]> > Signed-off-by: Davide Caratti <[email protected]>
Reviewed-by: Saeed Mahameed <[email protected]>
