git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/dpaa: prefer defines for link speed values
[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
e6fecd8
..
a75a7fa
100644
(file)
--- a/
drivers/net/bnx2x/ecore_sp.c
+++ b/
drivers/net/bnx2x/ecore_sp.c
@@
-2676,7
+2676,7
@@
static void ecore_mcast_hdl_del(struct bnx2x_softc *sc,
* @cmd:
* @start_cnt: first line in the ramrod data that may be used
*
* @cmd:
* @start_cnt: first line in the ramrod data that may be used
*
- * This function is called if
f
there is enough place for the current command in
+ * This function is called if there is enough place for the current command in
* the ramrod data.
* Returns number of lines filled in the ramrod data in total.
*/
* the ramrod data.
* Returns number of lines filled in the ramrod data in total.
*/
@@
-2725,7
+2725,7
@@
static int ecore_mcast_validate_e2(__rte_unused struct bnx2x_softc *sc,
/* DEL command deletes all currently configured MACs */
case ECORE_MCAST_CMD_DEL:
o->set_registry_size(o, 0);
/* DEL command deletes all currently configured MACs */
case ECORE_MCAST_CMD_DEL:
o->set_registry_size(o, 0);
- /*
Don't break
*/
+ /*
fall-through
*/
/* RESTORE command will restore the entire multicast configuration */
case ECORE_MCAST_CMD_RESTORE:
/* RESTORE command will restore the entire multicast configuration */
case ECORE_MCAST_CMD_RESTORE:
@@
-2834,7
+2834,7
@@
static int ecore_mcast_setup_e2(struct bnx2x_softc *sc,
if (ECORE_LIST_IS_EMPTY(&o->pending_cmds_head))
o->clear_sched(o);
if (ECORE_LIST_IS_EMPTY(&o->pending_cmds_head))
o->clear_sched(o);
- /* The below may be TRUE if
f
there was enough room in ramrod
+ /* The below may be TRUE if there was enough room in ramrod
* data for all pending commands and for the current
* command. Otherwise the current command would have been added
* to the pending commands and p->mcast_list_len would have been
* data for all pending commands and for the current
* command. Otherwise the current command would have been added
* to the pending commands and p->mcast_list_len would have been
@@
-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