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)
commitd0a84e1f38d9d6ae2dfab0b6c2407d667a265aa5
tree80e6f48ad5c1f98ebd073930c05ded715245b687
parentf8c931f3be8dd074bb3e5cae99a8fc8bfdc54dfb
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