act_skbedit.c (c2ccf84ecb715bb81dc7f51e69d680a95bf055ae) act_skbedit.c (a9c64939b669b3c83cc54738d1986430e6beaff2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2008, Intel Corporation.
4 *
5 * Author: Alexander Duyck <alexander.h.duyck@intel.com>
6 */
7
8#include <linux/module.h>

--- 329 unchanged lines hidden (view full) ---

338 entry->id = FLOW_ACTION_MARK;
339 entry->mark = tcf_skbedit_mark(act);
340 } else if (is_tcf_skbedit_ptype(act)) {
341 entry->id = FLOW_ACTION_PTYPE;
342 entry->ptype = tcf_skbedit_ptype(act);
343 } else if (is_tcf_skbedit_priority(act)) {
344 entry->id = FLOW_ACTION_PRIORITY;
345 entry->priority = tcf_skbedit_priority(act);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2008, Intel Corporation.
4 *
5 * Author: Alexander Duyck <alexander.h.duyck@intel.com>
6 */
7
8#include <linux/module.h>

--- 329 unchanged lines hidden (view full) ---

338 entry->id = FLOW_ACTION_MARK;
339 entry->mark = tcf_skbedit_mark(act);
340 } else if (is_tcf_skbedit_ptype(act)) {
341 entry->id = FLOW_ACTION_PTYPE;
342 entry->ptype = tcf_skbedit_ptype(act);
343 } else if (is_tcf_skbedit_priority(act)) {
344 entry->id = FLOW_ACTION_PRIORITY;
345 entry->priority = tcf_skbedit_priority(act);
346 } else if (is_tcf_skbedit_queue_mapping(act)) {
347 NL_SET_ERR_MSG_MOD(extack, "Offload not supported when \"queue_mapping\" option is used");
348 return -EOPNOTSUPP;
349 } else if (is_tcf_skbedit_inheritdsfield(act)) {
350 NL_SET_ERR_MSG_MOD(extack, "Offload not supported when \"inheritdsfield\" option is used");
351 return -EOPNOTSUPP;
346 } else {
352 } else {
353 NL_SET_ERR_MSG_MOD(extack, "Unsupported skbedit option offload");
347 return -EOPNOTSUPP;
348 }
349 *index_inc = 1;
350 } else {
351 struct flow_offload_action *fl_action = entry_data;
352
353 if (is_tcf_skbedit_mark(act))
354 fl_action->id = FLOW_ACTION_MARK;

--- 62 unchanged lines hidden ---
354 return -EOPNOTSUPP;
355 }
356 *index_inc = 1;
357 } else {
358 struct flow_offload_action *fl_action = entry_data;
359
360 if (is_tcf_skbedit_mark(act))
361 fl_action->id = FLOW_ACTION_MARK;

--- 62 unchanged lines hidden ---