History

etf: Add skip_sock_check

Currently, etf expects a socket with SO_TXTIME option set for each packet it encounters. So, it will drop all other packets. But, in the future commits we are planning to add functionality where tstamp value will be set by another qdisc. Also, some packets which are generated from within the kernel (e.g. ICMP packets) do not have any socket associated with them. So, this commit adds support for skip_sock_check. When this option is set, etf will skip checking for a socket and other associated options for all skbs.

Vedang Patel committed 7 years ago

Commit d14d2b21 parent 9903c8d2 files · +11 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+1−0
@@ -990,6 +990,7 @@ struct tc_etf_qopt { · 989 unmodified lines
990990 __u32 flags;
991991 #define TC_ETF_DEADLINE_MODE_ON _BITUL(0)
992992 #define TC_ETF_OFFLOAD_ON _BITUL(1)
993+#define TC_ETF_SKIP_SOCK_CHECK _BITUL(2)
993994 };
994995
995996 enum {