xdp_sample_shared.h 295 B

1234567891011121314151617
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. #ifndef _XDP_SAMPLE_SHARED_H
  3. #define _XDP_SAMPLE_SHARED_H
  4. struct datarec {
  5. size_t processed;
  6. size_t dropped;
  7. size_t issue;
  8. union {
  9. size_t xdp_pass;
  10. size_t info;
  11. };
  12. size_t xdp_drop;
  13. size_t xdp_redirect;
  14. } __attribute__((aligned(64)));
  15. #endif