vxlan: vxlan_rcv(): Update comment to inlucde ipv6
Subsystems (2)
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().
--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ;
Signature · 1 line
2.39.2
Quoted 16 lines · Ted Chen
Update the comment to indicate that both
net/ipv4/udp.candnet/ipv6/udp.cinvokevxlan_rcv()to process packets.The comment aligns with that for
vxlan_err_lookup().Cc Ido Schimmel <[email protected]>Signed-off-by Ted Chen <[email protected]>--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/vxlan/vxlan_core.c +0
-0
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
Quoted 20 lines · Nikolay Aleksandrov
Quoted 19 lines · Ted Chen
Update the comment to indicate that both
net/ipv4/udp.candnet/ipv6/udp.cinvokevxlan_rcv()to process packets.The comment aligns with that for
vxlan_err_lookup().Cc Ido Schimmel <[email protected]>Signed-off-by Ted Chen <[email protected]>--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/vxlan/vxlan_core.c +0
-0@@ -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_rcvcallers 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().
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.candnet/ipv6/udp.cinvokevxlan_rcv()to process packets.The comment aligns with that for
vxlan_err_lookup().Cc Ido Schimmel <[email protected]>Signed-off-by Ted Chen <[email protected]>--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/vxlan/vxlan_core.c +0
-0@@ -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_rcvcallers 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()andvxlan_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. :)
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.candnet/ipv6/udp.cinvokevxlan_rcv()to process packets.The comment aligns with that for
vxlan_err_lookup().Cc Ido Schimmel <[email protected]>Signed-off-by Ted Chen <[email protected]>--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/vxlan/vxlan_core.c +0
-0@@ -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/includeOops. Sorry for that.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
IMO these comments are unnecessary,
encap_rcvcallers 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()andvxlan_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 :)