ixl_txrx.c (292094) | ixl_txrx.c (292095) |
---|---|
1/****************************************************************************** 2 | 1/****************************************************************************** 2 |
3 Copyright (c) 2013-2014, Intel Corporation | 3 Copyright (c) 2013-2015, Intel Corporation |
4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 9 1. Redistributions of source code must retain the above copyright notice, 10 this list of conditions and the following disclaimer. 11 --- 13 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ | 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 9 1. Redistributions of source code must retain the above copyright notice, 10 this list of conditions and the following disclaimer. 11 --- 13 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ |
33/*$FreeBSD: stable/10/sys/dev/ixl/ixl_txrx.c 292094 2015-12-11 12:16:05Z smh $*/ | 33/*$FreeBSD: stable/10/sys/dev/ixl/ixl_txrx.c 292095 2015-12-11 12:20:58Z smh $*/ |
34 35/* 36** IXL driver TX/RX Routines: 37** This was seperated to allow usage by 38** both the BASE and the VF drivers. 39*/ 40 | 34 35/* 36** IXL driver TX/RX Routines: 37** This was seperated to allow usage by 38** both the BASE and the VF drivers. 39*/ 40 |
41#ifndef IXL_STANDALONE_BUILD |
|
41#include "opt_inet.h" 42#include "opt_inet6.h" | 42#include "opt_inet.h" 43#include "opt_inet6.h" |
44#endif 45 |
|
43#include "ixl.h" 44 | 46#include "ixl.h" 47 |
45#ifdef RSS | 48#ifdef RSS |
46#include <net/rss_config.h> 47#endif 48 49/* Local Prototypes */ 50static void ixl_rx_checksum(struct mbuf *, u32, u32, u8); 51static void ixl_refresh_mbufs(struct ixl_queue *, int); 52static int ixl_xmit(struct ixl_queue *, struct mbuf **); 53static int ixl_tx_setup_offload(struct ixl_queue *, --- 1311 unchanged lines hidden (view full) --- 1365 rbuf->m_pack = NULL; 1366 } 1367 1368 return; 1369} 1370 1371#ifdef RSS 1372/* | 49#include <net/rss_config.h> 50#endif 51 52/* Local Prototypes */ 53static void ixl_rx_checksum(struct mbuf *, u32, u32, u8); 54static void ixl_refresh_mbufs(struct ixl_queue *, int); 55static int ixl_xmit(struct ixl_queue *, struct mbuf **); 56static int ixl_tx_setup_offload(struct ixl_queue *, --- 1311 unchanged lines hidden (view full) --- 1368 rbuf->m_pack = NULL; 1369 } 1370 1371 return; 1372} 1373 1374#ifdef RSS 1375/* |
1373** ixl_ptype_to_hash: parse the packet type | 1376** i40e_ptype_to_hash: parse the packet type |
1374** to determine the appropriate hash. 1375*/ 1376static inline int 1377ixl_ptype_to_hash(u8 ptype) 1378{ 1379 struct i40e_rx_ptype_decoded decoded; 1380 u8 ex = 0; 1381 --- 378 unchanged lines hidden --- | 1377** to determine the appropriate hash. 1378*/ 1379static inline int 1380ixl_ptype_to_hash(u8 ptype) 1381{ 1382 struct i40e_rx_ptype_decoded decoded; 1383 u8 ex = 0; 1384 --- 378 unchanged lines hidden --- |