6868 * - netif_rx() feedback
6969 */
7070
71- /* #ifdef CONFIG_XDPLUA */
71+ #ifdef CONFIG_XDP_LUA
7272#include <lua.h>
7373#include <lauxlib.h>
7474#include <lualib.h>
7575#include <luadata.h>
76- /* #endif CONFIG_XDPLUA */
76+ #endif /* CONFIG_XDP_LUA */
7777
7878#include <linux/uaccess.h>
7979#include <linux/bitops.h>
@@ -171,9 +171,9 @@ static int call_netdevice_notifiers_extack(unsigned long val,
171171 struct netlink_ext_ack * extack );
172172static struct napi_struct * napi_by_id (unsigned int napi_id );
173173
174- /* #ifdef CONFIG_XDPLUA */
174+ #ifdef CONFIG_XDP_LUA
175175struct list_head lua_state_cpu_list ;
176- /* #endif CONFIG_XDPLUA */
176+ #endif /* CONFIG_XDP_LUA */
177177
178178/*
179179 * The @dev_base_head list is protected by @dev_base_lock and the rtnl
@@ -4382,9 +4382,9 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb,
43824382
43834383 rxqueue = netif_get_rxqueue (skb );
43844384 xdp -> rxq = & rxqueue -> xdp_rxq ;
4385- /* #ifdef CONFIG_XDPLUA */
4385+ #ifdef CONFIG_XDP_LUA
43864386 xdp -> skb = skb ;
4387- /* #endif CONFIG_XDPLUA */
4387+ #endif /* CONFIG_XDP_LUA */
43884388
43894389 act = bpf_prog_run_xdp (xdp_prog , xdp );
43904390
@@ -5197,7 +5197,7 @@ static int generic_xdp_install(struct net_device *dev, struct netdev_bpf *xdp)
51975197 return ret ;
51985198}
51995199
5200- /* #ifdef CONFIG_XDPLUA */
5200+ #ifdef CONFIG_XDP_LUA
52015201int generic_xdp_lua_install_prog (char * lua_prog )
52025202{
52035203 struct lua_state_cpu * sc ;
@@ -5211,7 +5211,7 @@ int generic_xdp_lua_install_prog(char *lua_prog)
52115211 }
52125212 return 0 ;
52135213}
5214- /* #endif CONFIG_XDPLUA */
5214+ #endif /* CONFIG_XDP_LUA */
52155215
52165216static int netif_receive_skb_internal (struct sk_buff * skb )
52175217{
@@ -9830,9 +9830,9 @@ static struct pernet_operations __net_initdata default_device_ops = {
98309830static int __init net_dev_init (void )
98319831{
98329832 int i , rc = - ENOMEM ;
9833- /* #ifdef CONFIG_XDPLUA */
9833+ #ifdef CONFIG_XDP_LUA
98349834 struct lua_state_cpu * new_state_cpu ;
9835- /* #endif CONFIG_XDPLUA */
9835+ #endif /* CONFIG_XDP_LUA */
98369836
98379837 BUG_ON (!dev_boot_phase );
98389838
@@ -9847,9 +9847,9 @@ static int __init net_dev_init(void)
98479847 INIT_LIST_HEAD (& ptype_base [i ]);
98489848
98499849 INIT_LIST_HEAD (& offload_base );
9850- /* #ifdef CONFIG_XDPLUA */
9850+ #ifdef CONFIG_XDP_LUA
98519851 INIT_LIST_HEAD (& lua_state_cpu_list );
9852- /* #endif CONFIG_XDPLUA */
9852+ #endif /* CONFIG_XDP_LUA */
98539853
98549854 if (register_pernet_subsys (& netdev_net_ops ))
98559855 goto out ;
@@ -9881,7 +9881,7 @@ static int __init net_dev_init(void)
98819881 sd -> backlog .poll = process_backlog ;
98829882 sd -> backlog .weight = weight_p ;
98839883
9884- /* #ifdef CONFIG_XDPLUA */
9884+ #ifdef CONFIG_XDP_LUA
98859885 new_state_cpu = (struct lua_state_cpu * )
98869886 kmalloc (sizeof (struct lua_state_cpu ), GFP_ATOMIC );
98879887 if (!new_state_cpu )
@@ -9899,7 +9899,7 @@ static int __init net_dev_init(void)
98999899 new_state_cpu -> cpu = i ;
99009900
99019901 list_add (& new_state_cpu -> list , & lua_state_cpu_list );
9902- /* #endif CONFIG_XDPLUA */
9902+ #endif /* CONFIG_XDP_LUA */
99039903 }
99049904
99059905 dev_boot_phase = 0 ;
0 commit comments