igb: fix build without ieee1588 enabled
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 28 Oct 2015 16:08:00 +0000 (16:08 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 28 Oct 2015 17:30:05 +0000 (18:30 +0100)
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 <harry.van.haaren@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/net/e1000/igb_rxtx.c

index 66bc3f0..d734a19 100644 (file)
@@ -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;