aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl/ixl.h
diff options
context:
space:
mode:
authorJack F Vogel <jfv@FreeBSD.org>2014-11-06 23:45:05 +0000
committerJack F Vogel <jfv@FreeBSD.org>2014-11-06 23:45:05 +0000
commite5100ee2787fc2d98602563e00a9b1ab0768b89a (patch)
treed315d8cbe8b8cfba2d12da3c06f171590e8eb8cd /sys/dev/ixl/ixl.h
parent2b293f6aa1b3b1fd7aa2ee1809952e3d366bce72 (diff)
downloadsrc-e5100ee2787fc2d98602563e00a9b1ab0768b89a.tar.gz
src-e5100ee2787fc2d98602563e00a9b1ab0768b89a.zip
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
Notes
Notes: svn path=/head/; revision=274205
Diffstat (limited to 'sys/dev/ixl/ixl.h')
-rw-r--r--sys/dev/ixl/ixl.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/ixl/ixl.h b/sys/dev/ixl/ixl.h
index c240b026e355..2b640ce08081 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);
}