net/qede: add Tx offloads for MPLS-in-UDP packets
authorHarish Patil <harish.patil@cavium.com>
Tue, 27 Jun 2017 07:21:32 +0000 (00:21 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commitaab21617502eb90d8b466ef06300ebd6e20e534e
tree692a8c2a1ee7d9b62d6ce2a23c78b4e236649563
parentd95188551fa1edb2293b1b34fc91fa5dea4057d5
net/qede: add Tx offloads for MPLS-in-UDP packets

Add support for inner/outer L3/L4 TX csum offload for MPLS-in-UDP packets.
The driver checks for PKT_TX_TUNNEL_MPLSINUDP in Tx ol_flags and updates TX
BD elements with appropriate offsets/length of tunnel headers.
The pseudo csum calculation is removed from qede_xmit_prep_pkts() since its
not needed.

Signed-off-by: Harish Patil <harish.patil@cavium.com>
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/qede_rxtx.c
drivers/net/qede/qede_rxtx.h