]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: allow flow-type ether without IP protocol field
authorVishal Kulkarni <vishal@chelsio.com>
Tue, 18 Aug 2020 18:55:03 +0000 (00:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:26:03 +0000 (16:26 -0700)
commit97404d363f1a9695918dab997d62f1277f2d7d9d
tree80e6f48ad5c1f98ebd073930c05ded715245b687
parentfdfdbf791365cfd59b870a2c042c83b29315779b
ethtool: allow flow-type ether without IP protocol field

Set IP protocol mask only when IP protocol field is set.
This will allow flow-type ether with vlan rule which don't have
protocol field to apply.

ethtool -N ens5f4 flow-type ether proto 0x8100 vlan 0x600\
m 0x1FFF action 3 loc 16

Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c