Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 18.02
[deb_dpdk.git]
/
drivers
/
net
/
bnx2x
/
ecore_sp.c
diff --git
a/drivers/net/bnx2x/ecore_sp.c
b/drivers/net/bnx2x/ecore_sp.c
index
ef7f9fe
..
a75a7fa
100644
(file)
--- a/
drivers/net/bnx2x/ecore_sp.c
+++ b/
drivers/net/bnx2x/ecore_sp.c
@@
-3402,7
+3402,7
@@
void ecore_init_mac_credit_pool(struct bnx2x_softc *sc,
/* CAM credit is equally divided between all active functions
* on the PORT!.
*/
/* CAM credit is equally divided between all active functions
* on the PORT!.
*/
- if (
(func_num > 0)
) {
+ if (
func_num > 0
) {
if (!CHIP_REV_IS_SLOW(sc))
cam_sz = (MAX_MAC_CREDIT_E1H / (2 * func_num));
else
if (!CHIP_REV_IS_SLOW(sc))
cam_sz = (MAX_MAC_CREDIT_E1H / (2 * func_num));
else
@@
-3419,7
+3419,7
@@
void ecore_init_mac_credit_pool(struct bnx2x_softc *sc,
* CAM credit is equaly divided between all active functions
* on the PATH.
*/
* CAM credit is equaly divided between all active functions
* on the PATH.
*/
- if (
(func_num > 0)
) {
+ if (
func_num > 0
) {
if (!CHIP_REV_IS_SLOW(sc))
cam_sz = (MAX_MAC_CREDIT_E2 / func_num);
else
if (!CHIP_REV_IS_SLOW(sc))
cam_sz = (MAX_MAC_CREDIT_E2 / func_num);
else