Skip to content

Commit d36b693

Browse files
committed
Merge: tunnels: Accept PACKET_HOST in skb_tunnel_check_pmtu().
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6770 JIRA: https://issues.redhat.com/browse/RHEL-57031 Upstream Status: linux.git Signed-off-by: Guillaume Nault <gnault@redhat.com> Approved-by: Eelco Chaudron <echaudro@redhat.com> Approved-by: Aaron Conole <aconole@redhat.com> Approved-by: Hangbin Liu <haliu@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents 1a20e57 + 8aaced9 commit d36b693

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

net/ipv4/ip_tunnel_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ int skb_tunnel_check_pmtu(struct sk_buff *skb, struct dst_entry *encap_dst,
416416

417417
skb_dst_update_pmtu_no_confirm(skb, mtu);
418418

419-
if (!reply || skb->pkt_type == PACKET_HOST)
419+
if (!reply)
420420
return 0;
421421

422422
if (skb->protocol == htons(ETH_P_IP))

net/openvswitch/actions.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -945,12 +945,6 @@ static void do_output(struct datapath *dp, struct sk_buff *skb, int out_port,
945945
pskb_trim(skb, ovs_mac_header_len(key));
946946
}
947947

948-
/* Need to set the pkt_type to involve the routing layer. The
949-
* packet movement through the OVS datapath doesn't generally
950-
* use routing, but this is needed for tunnel cases.
951-
*/
952-
skb->pkt_type = PACKET_OUTGOING;
953-
954948
if (likely(!mru ||
955949
(skb->len <= mru + vport->dev->hard_header_len))) {
956950
ovs_vport_send(vport, skb, ovs_key_mac_proto(key));

0 commit comments

Comments
 (0)