X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpending-4.14%2F644-net-pppoe-support-hardware-flow-table-offload.patch;fp=target%2Flinux%2Fgeneric%2Fpending-4.14%2F644-net-pppoe-support-hardware-flow-table-offload.patch;h=48eb533857313ce6f2910d5d1b209d2f7ac71ba8;hp=3331d5956e6aced60624d588b48efa843676eab9;hb=e9cb1b720dc890f40598b3ccf1b42110eee5081a;hpb=75ed56a08a4ce978323259a59a8f45ceed511584 diff --git a/target/linux/generic/pending-4.14/644-net-pppoe-support-hardware-flow-table-offload.patch b/target/linux/generic/pending-4.14/644-net-pppoe-support-hardware-flow-table-offload.patch index 3331d5956e..48eb533857 100644 --- a/target/linux/generic/pending-4.14/644-net-pppoe-support-hardware-flow-table-offload.patch +++ b/target/linux/generic/pending-4.14/644-net-pppoe-support-hardware-flow-table-offload.patch @@ -13,7 +13,7 @@ Signed-off-by: Felix Fietkau #include #include -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) +#include +#include +#endif @@ -25,7 +25,7 @@ Signed-off-by: Felix Fietkau ppp_destroy_interface(ppp); } -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) +static int ppp_flow_offload_check(struct flow_offload_hw_path *path) +{ + struct ppp *ppp = netdev_priv(path->dev); @@ -53,7 +53,7 @@ Signed-off-by: Felix Fietkau .ndo_start_xmit = ppp_start_xmit, .ndo_do_ioctl = ppp_net_ioctl, .ndo_get_stats64 = ppp_get_stats64, -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) + .ndo_flow_offload_check = ppp_flow_offload_check, +#endif }; @@ -65,7 +65,7 @@ Signed-off-by: Felix Fietkau #include #include -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) +#include +#include +#endif @@ -77,7 +77,7 @@ Signed-off-by: Felix Fietkau return __pppoe_xmit(sk, skb); } -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) +static int pppoe_flow_offload_check(struct ppp_channel *chan, + struct flow_offload_hw_path *path) +{ @@ -104,7 +104,7 @@ Signed-off-by: Felix Fietkau + static const struct ppp_channel_ops pppoe_chan_ops = { .start_xmit = pppoe_xmit, -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) + .flow_offload_check = pppoe_flow_offload_check, +#endif }; @@ -117,7 +117,7 @@ Signed-off-by: Felix Fietkau /* Handle an ioctl call that has come in via /dev/ppp. */ int (*ioctl)(struct ppp_channel *, unsigned int, unsigned long); + -+#ifdef CONFIG_NF_FLOW_TABLE ++#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) + int (*flow_offload_check)(struct ppp_channel *, struct flow_offload_hw_path *); +#endif };