mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
Revert "net: check if protocol extracted by virtio_net_hdr_set_proto is correct"
This reverts commit54ef8243c3which is commit924a9bc362upstream. This breaks the ABI and is not needed in the android-4.19-stable branch as the issue it was added for is not relevant here. Bug: 161946584 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I0a0453de60f4a614448cc62736eb32681277a6e8
This commit is contained in:
@@ -79,13 +79,8 @@ static inline int virtio_net_hdr_to_skb(struct sk_buff *skb,
|
||||
if (gso_type && skb->network_header) {
|
||||
struct flow_keys_basic keys;
|
||||
|
||||
if (!skb->protocol) {
|
||||
__be16 protocol = dev_parse_header_protocol(skb);
|
||||
|
||||
if (!skb->protocol)
|
||||
virtio_net_hdr_set_proto(skb, hdr);
|
||||
if (protocol && protocol != skb->protocol)
|
||||
return -EINVAL;
|
||||
}
|
||||
retry:
|
||||
if (!skb_flow_dissect_flow_keys_basic(skb, &keys,
|
||||
NULL, 0, 0, 0,
|
||||
|
||||
Reference in New Issue
Block a user