act_ct.c (d5a116dbe7123f6c1bdc581500349ff3bb9416f9) | act_ct.c (0a7c9d1f550612fe0325b3987c2cdb7ec0546c58) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* - 3 * net/sched/act_ct.c Connection Tracking action 4 * 5 * Authors: Paul Blakey <paulb@mellanox.com> 6 * Yossi Kuperman <yossiku@mellanox.com> 7 * Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> 8 */ --- 1521 unchanged lines hidden (view full) --- 1530 1531static int tcf_ct_offload_act_setup(struct tc_action *act, void *entry_data, 1532 u32 *index_inc, bool bind, 1533 struct netlink_ext_ack *extack) 1534{ 1535 if (bind) { 1536 struct flow_action_entry *entry = entry_data; 1537 | 1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* - 3 * net/sched/act_ct.c Connection Tracking action 4 * 5 * Authors: Paul Blakey <paulb@mellanox.com> 6 * Yossi Kuperman <yossiku@mellanox.com> 7 * Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> 8 */ --- 1521 unchanged lines hidden (view full) --- 1530 1531static int tcf_ct_offload_act_setup(struct tc_action *act, void *entry_data, 1532 u32 *index_inc, bool bind, 1533 struct netlink_ext_ack *extack) 1534{ 1535 if (bind) { 1536 struct flow_action_entry *entry = entry_data; 1537 |
1538 if (tcf_ct_helper(act)) 1539 return -EOPNOTSUPP; 1540 |
|
1538 entry->id = FLOW_ACTION_CT; 1539 entry->ct.action = tcf_ct_action(act); 1540 entry->ct.zone = tcf_ct_zone(act); 1541 entry->ct.flow_table = tcf_ct_ft(act); 1542 *index_inc = 1; 1543 } else { 1544 struct flow_offload_action *fl_action = entry_data; 1545 --- 99 unchanged lines hidden --- | 1541 entry->id = FLOW_ACTION_CT; 1542 entry->ct.action = tcf_ct_action(act); 1543 entry->ct.zone = tcf_ct_zone(act); 1544 entry->ct.flow_table = tcf_ct_ft(act); 1545 *index_inc = 1; 1546 } else { 1547 struct flow_offload_action *fl_action = entry_data; 1548 --- 99 unchanged lines hidden --- |