cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

prestera_span.h (605B)


      1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
      2/* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
      3
      4#ifndef _PRESTERA_SPAN_H_
      5#define _PRESTERA_SPAN_H_
      6
      7#include <net/pkt_cls.h>
      8
      9#define PRESTERA_SPAN_INVALID_ID -1
     10
     11struct prestera_switch;
     12struct prestera_flow_block;
     13
     14int prestera_span_init(struct prestera_switch *sw);
     15void prestera_span_fini(struct prestera_switch *sw);
     16int prestera_span_replace(struct prestera_flow_block *block,
     17			  struct tc_cls_matchall_offload *f);
     18void prestera_span_destroy(struct prestera_flow_block *block);
     19
     20#endif /* _PRESTERA_SPAN_H_ */