--- zzzz-none-000/linux-4.19.183/drivers/net/vxlan.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/drivers/net/vxlan.c 2023-06-28 08:54:19.000000000 +0000 @@ -34,6 +34,10 @@ #include #endif +#if defined(CONFIG_BCM_KF_BLOG) && defined(CONFIG_BLOG) +#include +#endif + #define VXLAN_VERSION "0.1" #define PORT_HASH_BITS 8 @@ -1481,6 +1485,12 @@ goto drop; } +#if defined(CONFIG_BCM_KF_BLOG) && defined(CONFIG_BLOG) + blog_lock(); + blog_link(IF_DEVICE, blog_ptr(skb), (void*)(vxlan->dev), DIR_RX, skb->len); + blog_unlock(); +#endif + stats = this_cpu_ptr(vxlan->dev->tstats); u64_stats_update_begin(&stats->syncp); stats->rx_packets++; @@ -2193,6 +2203,13 @@ src_port = udp_flow_src_port(dev_net(dev), skb, vxlan->cfg.port_min, vxlan->cfg.port_max, true); +#if defined(CONFIG_BCM_KF_BLOG) && defined(CONFIG_BLOG) + blog_lock(); + blog_link(TOS_MODE, blog_ptr(skb), NULL, DIR_TX, vxlan->cfg.tos == 1 ? BLOG_TOS_INHERIT : BLOG_TOS_FIXED); + blog_link(IF_DEVICE, blog_ptr(skb), (void*)dev, DIR_TX, skb->len); + blog_unlock(); +#endif + rcu_read_lock(); if (dst->sa.sa_family == AF_INET) { struct vxlan_sock *sock4 = rcu_dereference(vxlan->vn4_sock); @@ -2274,6 +2291,7 @@ label, src_port, dst_port, !udp_sum); #endif } + out_unlock: rcu_read_unlock(); return;