summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2014-08-28 16:42:34 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-09-17 11:27:50 +0200
commitcafa59684660640c8bf847547613a48bc7a9d37c (patch)
tree72630ea82fb6b44117c0da46587dbeac73f0aa20 /examples/ipv4_multicast
parentf635747001bceab7ce4c1497f4dfe338d26c8d9b (diff)
downloaddpdk-cafa59684660640c8bf847547613a48bc7a9d37c.zip
dpdk-cafa59684660640c8bf847547613a48bc7a9d37c.tar.gz
dpdk-cafa59684660640c8bf847547613a48bc7a9d37c.tar.xz
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>
Diffstat (limited to 'examples/ipv4_multicast')
0 files changed, 0 insertions, 0 deletions