igb: fix constant sign in left shift operator

Tell the compiler to use an unsigned constant for the config shifts.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
This commit is contained in:
Aaron Conole 2016-03-22 17:37:16 -04:00 committed by Thomas Monjalon
parent b3cadb2825
commit d988d78fa2

View File

@ -172,8 +172,8 @@ int igb_pf_host_configure(struct rte_eth_dev *eth_dev)
E1000_WRITE_REG(hw, E1000_VT_CTL, vtctl);
/* Enable pools reserved to PF only */
E1000_WRITE_REG(hw, E1000_VFRE, (~0) << vf_num);
E1000_WRITE_REG(hw, E1000_VFTE, (~0) << vf_num);
E1000_WRITE_REG(hw, E1000_VFRE, (~0U) << vf_num);
E1000_WRITE_REG(hw, E1000_VFTE, (~0U) << vf_num);
/* PFDMA Tx General Switch Control Enables VMDQ loopback */
if (hw->mac.type == e1000_i350)