OSDN Git Service

act_skbedit: skbedit queue mapping for receive queue
authorAmritha Nambiar <amritha.nambiar@intel.com>
Fri, 21 Oct 2022 07:58:39 +0000 (00:58 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 08:32:40 +0000 (10:32 +0200)
commit4a6a676f8c16ec17d2f8d69ce3b5d680277ed0d2
treea1014bbd973a3a8a61a26e0bea2114df665d6fe2
parent6143eca3578f486e4d58fe6fb5e96a5699c86fbc
act_skbedit: skbedit queue mapping for receive queue

Add support for skbedit queue mapping action on receive
side. This is supported only in hardware, so the skip_sw
flag is enforced. This enables offloading filters for
receive queue selection in the hardware using the
skbedit action. Traffic arrives on the Rx queue requested
in the skbedit action parameter. A new tc action flag
TCA_ACT_FLAGS_AT_INGRESS is introduced to identify the
traffic direction the action queue_mapping is requested
on during filter addition. This is used to disallow
offloading the skbedit queue mapping action on transmit
side.

Example:
$tc filter add dev $IFACE ingress protocol ip flower dst_ip $DST_IP\
 action skbedit queue_mapping $rxq_id skip_sw

Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/act_api.h
include/net/flow_offload.h
include/net/tc_act/tc_skbedit.h
net/sched/act_skbedit.c
net/sched/cls_api.c