|
@@ -3061,7 +3061,7 @@ static int mvpp2_prs_mac_da_accept(struct mvpp2 *priv, int port,
|
|
|
|
|
|
pe = kzalloc(sizeof(*pe), GFP_KERNEL);
|
|
pe = kzalloc(sizeof(*pe), GFP_KERNEL);
|
|
if (!pe)
|
|
if (!pe)
|
|
- return -1;
|
|
|
|
|
|
+ return -ENOMEM;
|
|
mvpp2_prs_tcam_lu_set(pe, MVPP2_PRS_LU_MAC);
|
|
mvpp2_prs_tcam_lu_set(pe, MVPP2_PRS_LU_MAC);
|
|
pe->index = tid;
|
|
pe->index = tid;
|
|
|
|
|
|
@@ -3077,7 +3077,7 @@ static int mvpp2_prs_mac_da_accept(struct mvpp2 *priv, int port,
|
|
if (pmap == 0) {
|
|
if (pmap == 0) {
|
|
if (add) {
|
|
if (add) {
|
|
kfree(pe);
|
|
kfree(pe);
|
|
- return -1;
|
|
|
|
|
|
+ return -EINVAL;
|
|
}
|
|
}
|
|
mvpp2_prs_hw_inv(priv, pe->index);
|
|
mvpp2_prs_hw_inv(priv, pe->index);
|
|
priv->prs_shadow[pe->index].valid = false;
|
|
priv->prs_shadow[pe->index].valid = false;
|