aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <[email protected]>2019-02-21 12:40:02 +0000
committerDavid S. Miller <[email protected]>2019-02-22 20:55:31 +0000
commit6437866e493fa5aa5be03dfb94e1d686a7fc984b (patch)
treecea9c6fe6f9f75ffe9dc9bfc6569bcfbbf2eecfa /net/sched/cls_basic.c
parentnet/packet: Ask driver for protocol if not provided by user (diff)
downloadkernel-6437866e493fa5aa5be03dfb94e1d686a7fc984b.tar.gz
kernel-6437866e493fa5aa5be03dfb94e1d686a7fc984b.zip
net/packet: Remove redundant skb->protocol set
c72219b75f introduced tpacket_set_protocol that parses the Ethernet L2 header and sets skb->protocol if it's unset. It is no longer needed since the introduction of packet_parse_headers. In case of SOCK_RAW and unset skb->protocol, packet_parse_headers asks the driver to tell the protocol number, and it's implemented for all Ethernet devices. As the old function supported only Ethernet, no functionality is lost. Signed-off-by: Maxim Mikityanskiy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions