netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH net-next v3 0/5] ice: GTP support in switchdev
@ 2022-01-27 16:37 Marcin Szycik
  2022-01-27 16:39 ` [RFC PATCH net-next v3 1/5] gtp: Allow to create GTP device without FDs Marcin Szycik
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Marcin Szycik @ 2022-01-27 16:37 UTC (permalink / raw)
  To: netdev; +Cc: michal.swiatkowski, wojciech.drewek, davem, kuba, Marcin Szycik

Add support for adding GTP-C and GTP-U filters in switchdev mode.

To create a filter for GTP, create a GTP-type netdev with ip tool, enable
hardware offload, add qdisc and add a filter in tc:

ip link add $GTP0 type gtp role <sgsn/ggsn> hsize <hsize>
ethtool -K $PF0 hw-tc-offload on
tc qdisc add dev $GTP0 ingress
tc filter add dev $GTP0 ingress prio 1 flower enc_key_id 1337 \
action mirred egress redirect dev $VF1_PR

By default, a filter for GTP-U will be added. To add a filter for GTP-C,
specify enc_dst_port = 2123, e.g.:

tc filter add dev $GTP0 ingress prio 1 flower enc_key_id 1337 \
enc_dst_port 2123 action mirred egress redirect dev $VF1_PR

Note: IPv6 offload is not supported yet.
Note: GTP-U with no payload offload is not supported yet.

ICE COMMS package is required to create a filter as it contains GTP
profiles.

Changes in iproute2 are required to be able to add GTP netdev and use
GTP-specific options (QFI and PDU type). This patchset will be submitted
separately.

v2: Adding more CC
v3: Fixed mail thread, sorry for spam

Marcin Szycik (1):
  ice: Support GTP-U and GTP-C offload in switchdev

Michal Swiatkowski (1):
  ice: Fix FV offset searching

Wojciech Drewek (3):
  gtp: Allow to create GTP device without FDs
  gtp: Add support for checking GTP device type
  net/sched: Allow flower to match on GTP options

 drivers/net/ethernet/intel/ice/ice.h          |   1 +
 .../net/ethernet/intel/ice/ice_flex_pipe.c    |  46 +-
 .../net/ethernet/intel/ice/ice_flex_pipe.h    |   2 +-
 .../net/ethernet/intel/ice/ice_flex_type.h    |   6 +-
 .../ethernet/intel/ice/ice_protocol_type.h    |  19 +
 drivers/net/ethernet/intel/ice/ice_switch.c   | 630 ++++++++++++++++--
 drivers/net/ethernet/intel/ice/ice_switch.h   |   9 +
 drivers/net/ethernet/intel/ice/ice_tc_lib.c   | 105 ++-
 drivers/net/ethernet/intel/ice/ice_tc_lib.h   |   3 +
 drivers/net/gtp.c                             |  74 +-
 include/net/gtp.h                             |  11 +
 include/uapi/linux/if_tunnel.h                |   4 +-
 include/uapi/linux/pkt_cls.h                  |  15 +
 net/sched/cls_flower.c                        | 116 ++++
 14 files changed, 967 insertions(+), 74 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-02-12 11:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27 16:37 [RFC PATCH net-next v3 0/5] ice: GTP support in switchdev Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 1/5] gtp: Allow to create GTP device without FDs Marcin Szycik
2022-02-05 16:34   ` Harald Welte
2022-02-08 13:30     ` Drewek, Wojciech
2022-02-11  9:04       ` Harald Welte
2022-02-09 18:04     ` Marcin Szycik
2022-02-11  9:11       ` Harald Welte
2022-02-11 10:05         ` Drewek, Wojciech
2022-02-12 11:02           ` Harald Welte
2022-01-27 16:39 ` [RFC PATCH net-next v3 2/5] gtp: Add support for checking GTP device type Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 3/5] net/sched: Allow flower to match on GTP options Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 4/5] ice: Fix FV offset searching Marcin Szycik
2022-01-27 16:39 ` [RFC PATCH net-next v3 5/5] ice: Support GTP-U and GTP-C offload in switchdev Marcin Szycik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).