Skip to contentSkip to conversation

vxlan: vxlan_rcv(): Update comment to inlucde ipv6

PATCH In review Ted Chen 3 participants 5 messages Feb 5, 2025

Subsystems (2)
lore
Share & tools
lore

Ted Chen

author
#0 lore raw

PATCH 1/1 vxlan: vxlan_rcv(): Update comment to inlucde ipv6

Update the comment to indicate that both net/ipv4/udp.c and net/ipv6/udp.c invoke vxlan_rcv() to process packets.

The comment aligns with that for vxlan_err_lookup().

Cc Ido Schimmel <[email protected]>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +1 -1
index 5ef40ac816cc..8bdf91d1fdfe 100644
@@ -1684,7 +1684,7 @@ static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph,
 	return err <= 1;
 }
 
-/* Callback from net/ipv4/udp.c to receive packets */
+/* Callback from net/ipv{4,6}/udp.c to receive packets */
 static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
 {
 	struct vxlan_vni_node *vninode = NULL;
Signature · 1 line
2.39.2
#1 lore raw
Quoted 16 lines · Ted Chen

Update the comment to indicate that both net/ipv4/udp.c and net/ipv6/udp.c invoke vxlan_rcv() to process packets.

The comment aligns with that for vxlan_err_lookup().

Cc Ido Schimmel <[email protected]>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +0 -0
index 5ef40ac816cc..8bdf91d1fdfe 100644

drivers/net/vxlan/vxlan_core.c static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph, · line 1690

Quoted 8 lines
drivers/net/vxlan/vxlan_core.c +1 -1
@@ -1684,7 +1684,7 @@ static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph,
 	return err <= 1;
 }
 
-/* Callback from net/ipv4/udp.c to receive packets */
+/* Callback from net/ipv{4,6}/udp.c to receive packets */
 static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
 {
 	struct vxlan_vni_node *vninode = NULL;

Your subject has a typo
s/inlucde/include

IMO these comments are unnecessary, encap_rcv callers are trivial to find.

Cheers,
Nik

author
#2 lore raw
Quoted 20 lines · Nikolay Aleksandrov
Quoted 19 lines · Ted Chen

Update the comment to indicate that both net/ipv4/udp.c and net/ipv6/udp.c invoke vxlan_rcv() to process packets.

The comment aligns with that for vxlan_err_lookup().

Cc Ido Schimmel <[email protected]>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +0 -0
index 5ef40ac816cc..8bdf91d1fdfe 100644
@@ -1684,7 +1684,7 @@ static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph,
 	return err <= 1;
 }
 
Quoted 8 lines

drivers/net/vxlan/vxlan_core.c static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph, · line 1690

Quoted 5 lines
drivers/net/vxlan/vxlan_core.c +1 -1
-/* Callback from net/ipv4/udp.c to receive packets */
+/* Callback from net/ipv{4,6}/udp.c to receive packets */
 static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
 {
 	struct vxlan_vni_node *vninode = NULL;

Your subject has a typo
s/inlucde/include

Oops. Sorry for that.

Quoted 1 line

IMO these comments are unnecessary, encap_rcv callers are trivial to find.

I'm fine with either way. No comment is better than a wrong comment. Please let me know if I need to send a new version to correct the subject or remove the comments for both vxlan_rcv() and vxlan_err_lookup().

#3 lore raw
Quoted 29 lines · Ted Chen
Quoted 20 lines · Nikolay Aleksandrov
Quoted 19 lines · Ted Chen

Update the comment to indicate that both net/ipv4/udp.c and net/ipv6/udp.c invoke vxlan_rcv() to process packets.

The comment aligns with that for vxlan_err_lookup().

Cc Ido Schimmel <[email protected]>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +0 -0
index 5ef40ac816cc..8bdf91d1fdfe 100644
@@ -1684,7 +1684,7 @@ static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph,
 	return err <= 1;
 }
 
Quoted 8 lines

drivers/net/vxlan/vxlan_core.c static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph, · line 1690

Quoted 5 lines
drivers/net/vxlan/vxlan_core.c +1 -1
-/* Callback from net/ipv4/udp.c to receive packets */
+/* Callback from net/ipv{4,6}/udp.c to receive packets */
 static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
 {
 	struct vxlan_vni_node *vninode = NULL;

Your subject has a typo
s/inlucde/include

Quoted 7 lines

Oops. Sorry for that.

Quoted 1 line

IMO these comments are unnecessary, encap_rcv callers are trivial to find.

I'm fine with either way. No comment is better than a wrong comment. Please let me know if I need to send a new version to correct the subject or remove the comments for both vxlan_rcv() and vxlan_err_lookup().

Up to you, I don't have a strong preference. You have to wait 24 hours before posting another version anyway, so you have time to decide. :)

#4 lore raw
Quoted 32 lines · Nikolay Aleksandrov
Quoted 31 lines · Ted Chen
Quoted 20 lines · Nikolay Aleksandrov
Quoted 19 lines · Ted Chen

Update the comment to indicate that both net/ipv4/udp.c and net/ipv6/udp.c invoke vxlan_rcv() to process packets.

The comment aligns with that for vxlan_err_lookup().

Cc Ido Schimmel <[email protected]>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +0 -0
index 5ef40ac816cc..8bdf91d1fdfe 100644
@@ -1684,7 +1684,7 @@ static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph,
 	return err <= 1;
 }
 
Quoted 8 lines

drivers/net/vxlan/vxlan_core.c static bool vxlan_ecn_decapsulate(struct vxlan_sock *vs, void *oiph, · line 1690

Quoted 5 lines
drivers/net/vxlan/vxlan_core.c +1 -1
-/* Callback from net/ipv4/udp.c to receive packets */
+/* Callback from net/ipv{4,6}/udp.c to receive packets */
 static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
 {
 	struct vxlan_vni_node *vninode = NULL;

Your subject has a typo
s/inlucde/include

Oops. Sorry for that.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

IMO these comments are unnecessary, encap_rcv callers are trivial to find.

I'm fine with either way. No comment is better than a wrong comment. Please let me know if I need to send a new version to correct the subject or remove the comments for both vxlan_rcv() and vxlan_err_lookup().

Up to you, I don't have a strong preference. You have to wait 24 hours before posting another version anyway, so you have time to decide. :)

Looks like nobody will miss these comments, so I think they can be safely removed in v2 :)