Skip to content

Commit d0932d4

Browse files
authored
txrx.c decoupled socket prio from vlan prio option
Removed socket prio from being set by vlan prio option
1 parent a3ee0fb commit d0932d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/txrx.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,11 @@ static error_t parser(int key, char *arg, struct argp_state *state)
183183
len = strlen(arg);
184184
res = strtol((const char *)arg, &str_end, 10);
185185
if (errno || res < 0 || res >= 7 || str_end != &arg[len])
186-
exit_with_error("Invalid queue number/socket priority. Check --help");
187-
opt->socket_prio = (uint32_t)res;
186+
exit_with_error("Invalid queue number. Check --help");
188187
#ifdef WITH_XDP
189-
opt->x_opt.queue = opt->socket_prio;
188+
opt->x_opt.queue = (uint32_t)res;
190189
#endif
191-
opt->vlan_prio = opt->socket_prio * 32;
190+
opt->vlan_prio = (uint32_t)res * 32;
192191
break;
193192
case 'g':
194193
len = strlen(arg);

0 commit comments

Comments
 (0)