diff options
author | jfv <jfv@FreeBSD.org> | 2014-11-06 23:45:05 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2014-11-06 23:45:05 +0000 |
commit | 0899364592b55f0e4e3c96ce696d4ccd93dd2f3c (patch) | |
tree | d315d8cbe8b8cfba2d12da3c06f171590e8eb8cd /sys/dev/ixl/ixl.h | |
parent | fb62ea4c880e87a65a5efb98f216524f9dedbc8b (diff) | |
download | FreeBSD-src-0899364592b55f0e4e3c96ce696d4ccd93dd2f3c.zip FreeBSD-src-0899364592b55f0e4e3c96ce696d4ccd93dd2f3c.tar.gz |
Update the Intel i40e drivers, ixl version 1.2.8, ixlv version 1.1.18
-Improved VF stability, thanks to changes from Ryan Stone,
and Juniper.
- RSS fixes in the ixlv driver
- link detection in the ixlv driver
- New sysctl's added in ixl and ixlv
- reset timeout increased for ixlv
- stability fixes in detach
- correct media reporting
- Coverity warnings fixed
- Many small bug fixes
- VF Makefile modified - nvm shared code needed
- remove unused sleep channels in ixlv_sc struct
Submitted by: Eric Joyner (committed by jfv)
MFC after: 1 week
Diffstat (limited to 'sys/dev/ixl/ixl.h')
-rw-r--r-- | sys/dev/ixl/ixl.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/ixl/ixl.h b/sys/dev/ixl/ixl.h index c240b02..2b640ce 100644 --- a/sys/dev/ixl/ixl.h +++ b/sys/dev/ixl/ixl.h @@ -162,7 +162,9 @@ /* ** Default number of entries in Tx queue buf_ring. */ -#define DEFAULT_TXBRSZ (4096 * 4096) +#define SMALL_TXBRSZ 4096 +/* This may require mbuf cluster tuning */ +#define DEFAULT_TXBRSZ (SMALL_TXBRSZ * SMALL_TXBRSZ) /* Alignment for rings */ #define DBA_ALIGN 128 @@ -194,7 +196,7 @@ #define MAX_MULTICAST_ADDR 128 -#define IXL_BAR 3 +#define IXL_BAR 3 #define IXL_ADM_LIMIT 2 #define IXL_TSO_SIZE 65535 #define IXL_TX_BUF_SZ ((u32) 1514) @@ -208,7 +210,7 @@ #define IXL_ITR_NONE 3 #define IXL_QUEUE_EOL 0x7FF #define IXL_MAX_FRAME 0x2600 -#define IXL_MAX_TX_SEGS 8 +#define IXL_MAX_TX_SEGS 8 #define IXL_MAX_TSO_SEGS 66 #define IXL_SPARSE_CHAIN 6 #define IXL_QUEUE_HUNG 0x80000000 @@ -292,7 +294,6 @@ #define IXL_SET_NOPROTO(vsi, count) (vsi)->noproto = (count) #endif - /* ***************************************************************************** * vendor_info_array @@ -476,6 +477,7 @@ struct ixl_vsi { struct i40e_eth_stats eth_stats; struct i40e_eth_stats eth_stats_offsets; bool stat_offsets_loaded; + /* VSI stat counters */ u64 ipackets; u64 ierrors; u64 opackets; @@ -523,7 +525,8 @@ ixl_get_filter(struct ixl_vsi *vsi) /* create a new empty filter */ f = malloc(sizeof(struct ixl_mac_filter), M_DEVBUF, M_NOWAIT | M_ZERO); - SLIST_INSERT_HEAD(&vsi->ftl, f, next); + if (f) + SLIST_INSERT_HEAD(&vsi->ftl, f, next); return (f); } |