[Intel-wired-lan] [PATCH net-next 0/4] support for tunnel in ice eswitch

Michal Swiatkowski michal.swiatkowski at linux.intel.com
Mon Oct 11 09:48:17 UTC 2021


This series adds the support for ice vxlan, geneve and gre offload.

Support adding drop and redirect filter from and to this tunnel deivces.
>From means from uplink to VF and to means from VF to uplink. There is no
support for decapsulation and encapsulation offload.

example:
- vxlan from uplink to VF:
tc filter add dev $VXLAN_DEV protocol ip parent ffff: flower enc_dst_ip  \
$VF1_IP enc_key_id $VXLAN_VNI action mirred egress redirect dev $VF1_PR
- vxlan from VF to uplink:
tc filter add dev $VF1_PR protocol ip parent ffff: flower enc_dst_ip \
$LP_IP enc_key_id $VXLAN_VNI action mirred egress redirect dev $VXLAN_DEV

Michal Swiatkowski (4):
  ice: support for indirect notification
  ice: vxlan and geneve tc support
  ice: low level support for tunnels
  ice: support for gre in eswitch

 drivers/net/ethernet/intel/ice/ice.h          |   8 +
 .../net/ethernet/intel/ice/ice_flex_pipe.c    |  26 +-
 .../net/ethernet/intel/ice/ice_flex_type.h    |   4 +
 drivers/net/ethernet/intel/ice/ice_main.c     | 196 ++++++++-
 .../ethernet/intel/ice/ice_protocol_type.h    |  35 ++
 drivers/net/ethernet/intel/ice/ice_switch.c   | 374 ++++++++++++++++-
 drivers/net/ethernet/intel/ice/ice_switch.h   |   3 +
 drivers/net/ethernet/intel/ice/ice_tc_lib.c   | 393 ++++++++++++++++--
 drivers/net/ethernet/intel/ice/ice_tc_lib.h   |  10 +
 9 files changed, 1000 insertions(+), 49 deletions(-)

-- 
2.31.1



More information about the Intel-wired-lan mailing list