Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
0002 /* Copyright (c) 2020 Marvell International Ltd. All rights reserved. */
0003 
0004 #ifndef _PRESTERA_FLOW_H_
0005 #define _PRESTERA_FLOW_H_
0006 
0007 #include <net/flow_offload.h>
0008 
0009 struct prestera_port;
0010 struct prestera_switch;
0011 
0012 struct prestera_flow_block_binding {
0013     struct list_head list;
0014     struct prestera_port *port;
0015     int span_id;
0016 };
0017 
0018 struct prestera_flow_block {
0019     struct list_head binding_list;
0020     struct prestera_switch *sw;
0021     struct net *net;
0022     struct prestera_acl_ruleset *ruleset_zero;
0023     struct flow_block_cb *block_cb;
0024     struct list_head template_list;
0025     unsigned int rule_count;
0026     bool ingress;
0027 };
0028 
0029 int prestera_flow_block_setup(struct prestera_port *port,
0030                   struct flow_block_offload *f);
0031 
0032 #endif /* _PRESTERA_FLOW_H_ */