• Amritha Nambiar's avatar
    ice: Add support for outer dest MAC for ADQ tunnels · 02ddec19
    Amritha Nambiar authored
    TC flower does not support matching on user specified
    outer MAC address for tunnels. For ADQ tunnels, the driver
    adds outer destination MAC address as lower netdev's
    active unicast MAC address to filter out packets with
    unrelated MAC address being delivered to ADQ VSIs.
    
    Example:
    - create tunnel device
    ip l add $VXLAN_DEV type vxlan id $VXLAN_VNI dstport $VXLAN_PORT \
    dev $PF
    - add TC filter (in ADQ mode)
    
    $tc filter add dev $VXLAN_DEV protocol ip parent ffff: flower \
     dst_ip $INNER_DST_IP ip_proto tcp dst_port $INNER_DST_PORT \
     enc_key_id $VXLAN_VNI hw_tc $ADQ_TC
    
    Note: Filters with wild-card tunnel ID (when user does not
    specify tunnel key) are also supported.
    Signed-off-by: default avatarAmritha Nambiar <amritha.nambiar@intel.com>
    Tested-by: default avatarBharathi Sreenivas <bharathi.sreenivas@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    02ddec19
ice_tc_lib.c 38.2 KB