Go to file
Bruce Richardson cafa596846 ixgbe: keep only non-zero initializer in mbuf definition
Since all unspecified fields in an initializer are assumed to be zero we
can simplify the empty mbuf definition in the vector driver to only use
the fields that are non-zero, i.e. just nb_segs = 1. This makes things
shorter and means that the structure doesn't need as many updates for
other fields being renamed or moved.

The variable itself is never modified and only used by a single function
so it can be made const and local to the using function.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2014-09-17 11:27:50 +02:00
app acl: fix build and runtime for default target 2014-09-03 03:26:50 +02:00
config vmxnet3: enable for FreeBSD 2014-07-22 16:38:01 +02:00
doc doc: remove extraneous comma 2014-07-16 09:45:47 +02:00
examples acl: fix build and runtime for default target 2014-09-03 03:26:50 +02:00
lib ixgbe: keep only non-zero initializer in mbuf definition 2014-09-17 11:27:50 +02:00
mk mk: add clang toolchain 2014-07-19 01:54:26 +02:00
pkg version: 1.7.1 2014-09-03 13:28:26 +02:00
scripts scripts: fix filtering of config comments on bsd 2014-06-19 00:57:50 +02:00
tools tools: allow nic status query without igb_uio 2014-06-27 03:08:18 +02:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00