diff mbox series

[ovs-dev,V3,16/40] compat: Add #define for gre_handle_offloads

Message ID 1526690988-29912-17-git-send-email-gvrose8192@gmail.com
State Accepted
Headers show
Series Add ERSPAN support | expand

Commit Message

Gregory Rose May 19, 2018, 12:49 a.m. UTC
Fixes compile errors on some 4.x kernels.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
---
 datapath/linux/compat/ip_gre.c | 1 +
 1 file changed, 1 insertion(+)

Comments

William Tu May 21, 2018, 10:42 p.m. UTC | #1
On Fri, May 18, 2018 at 5:49 PM, Greg Rose <gvrose8192@gmail.com> wrote:
> Fixes compile errors on some 4.x kernels.
>
> Signed-off-by: Greg Rose <gvrose8192@gmail.com>
> ---

LGTM
Acked-by: William Tu <u9012063@gmail.com>

>  datapath/linux/compat/ip_gre.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c
> index f849971..b1493e0 100644
> --- a/datapath/linux/compat/ip_gre.c
> +++ b/datapath/linux/compat/ip_gre.c
> @@ -421,6 +421,7 @@ static bool is_gre_gso(struct sk_buff *skb)
>         return skb_is_gso(skb);
>  }
>
> +#define gre_handle_offloads rpl_gre_handle_offloads
>  static int rpl_gre_handle_offloads(struct sk_buff *skb, bool gre_csum)
>  {
>         int type = gre_csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE;
> --
> 1.8.3.1
>
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
diff mbox series

Patch

diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c
index f849971..b1493e0 100644
--- a/datapath/linux/compat/ip_gre.c
+++ b/datapath/linux/compat/ip_gre.c
@@ -421,6 +421,7 @@  static bool is_gre_gso(struct sk_buff *skb)
 	return skb_is_gso(skb);
 }
 
+#define gre_handle_offloads rpl_gre_handle_offloads
 static int rpl_gre_handle_offloads(struct sk_buff *skb, bool gre_csum)
 {
 	int type = gre_csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE;