From f38770578f2c6b2e62e4fd4b806ba8be3bf7fafb Mon Sep 17 00:00:00 2001 From: Harry van Haaren Date: Wed, 28 Oct 2015 16:08:00 +0000 Subject: [PATCH] igb: fix build without ieee1588 enabled This patch marks rxq with RTE_SET_USED in rx_desc_hlen_type_rss_to_pkt_flags(), when ieee1588 is disabled. Previously a compilation error occurred on unused-parameter. Fixes: 1ce6591e238a ("igb: fix ieee1588 frame identification in i210") Signed-off-by: Harry van Haaren Acked-by: Pablo de Lara --- drivers/net/e1000/igb_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 66bc3f0b17..d734a19fc6 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -732,6 +732,8 @@ rx_desc_hlen_type_rss_to_pkt_flags(struct igb_rx_queue *rxq, uint32_t hl_tp_rs) pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 12) & 0x07]; else pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 4) & 0x07]; +#else + RTE_SET_USED(rxq); #endif return pkt_flags; -- 2.20.1