qlnx_os.c (318659) | qlnx_os.c (319449) |
---|---|
1/* 2 * Copyright (c) 2017-2018 Cavium, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 28 29/* 30 * File: qlnx_os.c 31 * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. 32 */ 33 34#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2017-2018 Cavium, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 28 29/* 30 * File: qlnx_os.c 31 * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: stable/11/sys/dev/qlnx/qlnxe/qlnx_os.c 318659 2017-05-22 19:28:38Z davidcs $"); | 35__FBSDID("$FreeBSD: stable/11/sys/dev/qlnx/qlnxe/qlnx_os.c 319449 2017-06-01 18:35:04Z davidcs $"); |
36 37#include "qlnx_os.h" 38#include "bcm_osal.h" 39#include "reg_addr.h" 40#include "ecore_gtt_reg_addr.h" 41#include "ecore.h" 42#include "ecore_chain.h" 43#include "ecore_status.h" --- 2897 unchanged lines hidden (view full) --- 2941 2942 nbd++; 2943 2944 if (m_head->m_pkthdr.csum_flags & CSUM_IP) { 2945 first_bd->data.bd_flags.bitfields |= 2946 (1 << ETH_TX_1ST_BD_FLAGS_IP_CSUM_SHIFT); 2947 } 2948 | 36 37#include "qlnx_os.h" 38#include "bcm_osal.h" 39#include "reg_addr.h" 40#include "ecore_gtt_reg_addr.h" 41#include "ecore.h" 42#include "ecore_chain.h" 43#include "ecore_status.h" --- 2897 unchanged lines hidden (view full) --- 2941 2942 nbd++; 2943 2944 if (m_head->m_pkthdr.csum_flags & CSUM_IP) { 2945 first_bd->data.bd_flags.bitfields |= 2946 (1 << ETH_TX_1ST_BD_FLAGS_IP_CSUM_SHIFT); 2947 } 2948 |
2949 if (m_head->m_pkthdr.csum_flags & (CSUM_UDP | CSUM_TCP)) { | 2949 if (m_head->m_pkthdr.csum_flags & 2950 (CSUM_UDP | CSUM_TCP | CSUM_TCP_IPV6 | CSUM_UDP_IPV6)) { |
2950 first_bd->data.bd_flags.bitfields |= 2951 (1 << ETH_TX_1ST_BD_FLAGS_L4_CSUM_SHIFT); 2952 } 2953 2954 if (m_head->m_flags & M_VLANTAG) { 2955 first_bd->data.vlan = m_head->m_pkthdr.ether_vtag; 2956 first_bd->data.bd_flags.bitfields |= 2957 (1 << ETH_TX_1ST_BD_FLAGS_VLAN_INSERTION_SHIFT); --- 4035 unchanged lines hidden --- | 2951 first_bd->data.bd_flags.bitfields |= 2952 (1 << ETH_TX_1ST_BD_FLAGS_L4_CSUM_SHIFT); 2953 } 2954 2955 if (m_head->m_flags & M_VLANTAG) { 2956 first_bd->data.vlan = m_head->m_pkthdr.ether_vtag; 2957 first_bd->data.bd_flags.bitfields |= 2958 (1 << ETH_TX_1ST_BD_FLAGS_VLAN_INSERTION_SHIFT); --- 4035 unchanged lines hidden --- |