summaryrefslogtreecommitdiff
path: root/lib/librte_pmd_e1000
diff options
context:
space:
mode:
authorRichardson, Bruce <bruce.richardson@intel.com>2013-11-26 11:07:52 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-12-10 10:32:32 +0100
commit91041732c2abfdc63118b5c206aeaeca54d42f1e (patch)
tree7a7566cb056668ec08c5c8ba444746b6810a3d62 /lib/librte_pmd_e1000
parent90651b8317d13ca74ea1f6cfda79e86f6e77bf99 (diff)
downloaddpdk-91041732c2abfdc63118b5c206aeaeca54d42f1e.zip
dpdk-91041732c2abfdc63118b5c206aeaeca54d42f1e.tar.gz
dpdk-91041732c2abfdc63118b5c206aeaeca54d42f1e.tar.xz
igb/ixgbe: fix build with ICC
ICC requires an initializer be given for the static variables, so adding one in cases where one wasn't previously given. This problem was introduced in commit 49c9bc3245f4222b. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib/librte_pmd_e1000')
-rw-r--r--lib/librte_pmd_e1000/igb_rxtx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c
index 90c3227..84dc4a6 100644
--- a/lib/librte_pmd_e1000/igb_rxtx.c
+++ b/lib/librte_pmd_e1000/igb_rxtx.c
@@ -1134,7 +1134,8 @@ igb_reset_tx_queue_stat(struct igb_tx_queue *txq)
static void
igb_reset_tx_queue(struct igb_tx_queue *txq, struct rte_eth_dev *dev)
{
- static const union e1000_adv_tx_desc zeroed_desc;
+ static const union e1000_adv_tx_desc zeroed_desc = { .read = {
+ .buffer_addr = 0 }};
struct igb_tx_entry *txe = txq->sw_ring;
uint16_t i, prev;
struct e1000_hw *hw;
@@ -1296,7 +1297,8 @@ eth_igb_rx_queue_release(void *rxq)
static void
igb_reset_rx_queue(struct igb_rx_queue *rxq)
{
- static const union e1000_adv_rx_desc zeroed_desc;
+ static const union e1000_adv_rx_desc zeroed_desc = { .read = {
+ .pkt_addr = 0 }};
unsigned i;
/* Zero out HW ring memory */