act_ct.c (08a7c7772b4db0be06e3b27239147c0a36e2a507) | act_ct.c (4b61d3e8d3daebbde7ec02d593f84248fdf8bec2) |
---|---|
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 */ --- 1436 unchanged lines hidden (view full) --- 1445 1446static int tcf_ct_search(struct net *net, struct tc_action **a, u32 index) 1447{ 1448 struct tc_action_net *tn = net_generic(net, ct_net_id); 1449 1450 return tcf_idr_search(tn, a, index); 1451} 1452 | 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 */ --- 1436 unchanged lines hidden (view full) --- 1445 1446static int tcf_ct_search(struct net *net, struct tc_action **a, u32 index) 1447{ 1448 struct tc_action_net *tn = net_generic(net, ct_net_id); 1449 1450 return tcf_idr_search(tn, a, index); 1451} 1452 |
1453static void tcf_stats_update(struct tc_action *a, u64 bytes, u32 packets, 1454 u64 lastuse, bool hw) | 1453static void tcf_stats_update(struct tc_action *a, u64 bytes, u64 packets, 1454 u64 drops, u64 lastuse, bool hw) |
1455{ 1456 struct tcf_ct *c = to_ct(a); 1457 | 1455{ 1456 struct tcf_ct *c = to_ct(a); 1457 |
1458 tcf_action_update_stats(a, bytes, packets, false, hw); | 1458 tcf_action_update_stats(a, bytes, packets, drops, hw); |
1459 c->tcf_tm.lastuse = max_t(u64, c->tcf_tm.lastuse, lastuse); 1460} 1461 1462static struct tc_action_ops act_ct_ops = { 1463 .kind = "ct", 1464 .id = TCA_ID_CT, 1465 .owner = THIS_MODULE, 1466 .act = tcf_ct_act, --- 87 unchanged lines hidden --- | 1459 c->tcf_tm.lastuse = max_t(u64, c->tcf_tm.lastuse, lastuse); 1460} 1461 1462static struct tc_action_ops act_ct_ops = { 1463 .kind = "ct", 1464 .id = TCA_ID_CT, 1465 .owner = THIS_MODULE, 1466 .act = tcf_ct_act, --- 87 unchanged lines hidden --- |