git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3cadb2
)
igb: fix constant sign in left shift operator
author
Aaron Conole
<aconole@redhat.com>
Tue, 22 Mar 2016 21:37:16 +0000
(17:37 -0400)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 15:09:56 +0000
(17:09 +0200)
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>
drivers/net/e1000/igb_pf.c
patch
|
blob
|
history
diff --git
a/drivers/net/e1000/igb_pf.c
b/drivers/net/e1000/igb_pf.c
index
7f45a44
..
5845bc2
100644
(file)
--- a/
drivers/net/e1000/igb_pf.c
+++ b/
drivers/net/e1000/igb_pf.c
@@
-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, (~0
U
) << vf_num);
+ E1000_WRITE_REG(hw, E1000_VFTE, (~0
U
) << vf_num);
/* PFDMA Tx General Switch Control Enables VMDQ loopback */
if (hw->mac.type == e1000_i350)