Skip to content

Commit

Permalink
lport-group: remove unprivileged flag
Browse files Browse the repository at this point in the history
Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Apr 27, 2023
1 parent 4bdeebc commit a41cf69
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/usr/app/jcfg/jcfg_lport_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,11 +748,7 @@ _lport_group(struct json_object *obj, int flags, struct json_object *parent __cn
CNE_ERR_RET_VAL(JSON_C_VISIT_RETURN_ERROR, "%s: Invalid Range\n",
JCFG_LPORT_BUSY_BUDGET_NAME);
lpg->busy_budget = (uint16_t)val;
} else if (!strncmp(key, JCFG_LPORT_UNPRIVILEGED_NAME, keylen))
lpg->flags |= json_object_get_boolean(obj)
? LPORT_UNPRIVILEGED
: 0; // Keep for backward compatibility with UDS?
else if (!strncmp(key, JCFG_LPORT_FORCE_WAKEUP_NAME, keylen))
} else if (!strncmp(key, JCFG_LPORT_FORCE_WAKEUP_NAME, keylen))
lpg->flags |= json_object_get_boolean(obj) ? LPORT_FORCE_WAKEUP : 0;
else if (!strncmp(key, JCFG_LPORT_SKB_MODE_NAME, keylen))
lpg->flags |= json_object_get_boolean(obj) ? LPORT_SKB_MODE : 0;
Expand Down

0 comments on commit a41cf69

Please sign in to comment.