diff options
| author | 2019-02-21 12:40:02 +0000 | |
|---|---|---|
| committer | 2019-02-22 12:55:31 -0800 | |
| commit | 6437866e493fa5aa5be03dfb94e1d686a7fc984b (patch) | |
| tree | cea9c6fe6f9f75ffe9dc9bfc6569bcfbbf2eecfa /net/sched/cls_basic.c | |
| parent | net/packet: Ask driver for protocol if not provided by user (diff) | |
| download | wireguard-linux-6437866e493fa5aa5be03dfb94e1d686a7fc984b.tar.xz wireguard-linux-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 <maximmi@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions
