]> git.baikalelectronics.ru Git - kernel.git/commit
etf: Add skip_sock_check
authorVedang Patel <vedang.patel@intel.com>
Tue, 25 Jun 2019 22:07:14 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 21:45:33 +0000 (14:45 -0700)
commite85a45a34cb351fc10687c4adb2c1461b916fb13
tree1da3abbd233d9060499854b0bd005eb75906c544
parente9d0157619633a664941f6b71b17cfdb94e42de8
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.

Signed-off-by: Vedang Patel <vedang.patel@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h
net/sched/sch_etf.c