[dpdk-dev] [PATCH v3 1/3] ether: Reset whole dev info structure

2014-10-10 Thread Thomas Monjalon
2014-10-01 10:49, Pablo de Lara: > + /* Reset dev info structure */ > + memset(dev_info, 0, sizeof(struct rte_eth_dev_info)); It's typically the kind of situation where a comment is not needed :) -- Thomas

[dpdk-dev] [PATCH v3 1/3] ether: Reset whole dev info structure

2014-10-01 Thread Pablo de Lara
To guarantee that RX/TX configuration structures are reseted before modifying them, plus the other dev info fields, dev info structure is zeroed beforehand. Signed-off-by: Pablo de Lara --- lib/librte_ether/rte_ethdev.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git