act_bpf.c (3eb66e91a25497065c5322b1268cbc3953642227) act_bpf.c (eddd2cf195d6fb5e4bbc91a0fe4be55110f559ab)
1/*
2 * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */

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

391{
392 struct tc_action_net *tn = net_generic(net, bpf_net_id);
393
394 return tcf_idr_search(tn, a, index);
395}
396
397static struct tc_action_ops act_bpf_ops __read_mostly = {
398 .kind = "bpf",
1/*
2 * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */

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

391{
392 struct tc_action_net *tn = net_generic(net, bpf_net_id);
393
394 return tcf_idr_search(tn, a, index);
395}
396
397static struct tc_action_ops act_bpf_ops __read_mostly = {
398 .kind = "bpf",
399 .type = TCA_ACT_BPF,
399 .id = TCA_ID_BPF,
400 .owner = THIS_MODULE,
401 .act = tcf_bpf_act,
402 .dump = tcf_bpf_dump,
403 .cleanup = tcf_bpf_cleanup,
404 .init = tcf_bpf_init,
405 .walk = tcf_bpf_walker,
406 .lookup = tcf_bpf_search,
407 .size = sizeof(struct tcf_bpf),

--- 37 unchanged lines hidden ---
400 .owner = THIS_MODULE,
401 .act = tcf_bpf_act,
402 .dump = tcf_bpf_dump,
403 .cleanup = tcf_bpf_cleanup,
404 .init = tcf_bpf_init,
405 .walk = tcf_bpf_walker,
406 .lookup = tcf_bpf_search,
407 .size = sizeof(struct tcf_bpf),

--- 37 unchanged lines hidden ---