From: Shannon Nelson Date: Fri, 25 Sep 2015 19:26:04 +0000 (+0000) Subject: i40e: add GRE tunnel type to csum encoding X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1d1791dc8b2a13c316a4e163552804361a786a4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i40e: add GRE tunnel type to csum encoding Make sure the Tx checksum encoder knows about GRE protocol and sets the descriptor flag appropriately. Signed-off-by: Shannon Nelson Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index 4f9ff894d7c5..d699fc941a77 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c @@ -2240,6 +2240,9 @@ static void i40e_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags, l4_tunnel = I40E_TXD_CTX_UDP_TUNNELING; *tx_flags |= I40E_TX_FLAGS_VXLAN_TUNNEL; break; + case IPPROTO_GRE: + l4_tunnel = I40E_TXD_CTX_GRE_TUNNELING; + break; default: return; }