ena_netmap.h (d17b7d87eec781844a495efb818d1b6cd169cb55) ena_netmap.h (9a0f2079ca900f9f37806e341790e2f3ed4cb19f)
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

42#undef unlikely
43#endif /* unlikely */
44
45#include <net/netmap.h>
46#include <sys/selinfo.h>
47#include <dev/netmap/netmap_kern.h>
48
49int ena_netmap_attach(struct ena_adapter *);
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

42#undef unlikely
43#endif /* unlikely */
44
45#include <net/netmap.h>
46#include <sys/selinfo.h>
47#include <dev/netmap/netmap_kern.h>
48
49int ena_netmap_attach(struct ena_adapter *);
50int ena_netmap_alloc_rx_slot(struct ena_adapter *, struct ena_ring *,
51 struct ena_rx_buffer *);
52void ena_netmap_free_rx_slot(struct ena_adapter *, struct ena_ring *,
53 struct ena_rx_buffer *);
54void ena_netmap_reset_rx_ring(struct ena_adapter *, int);
50
51#endif /* _ENA_NETMAP_H_ */
55
56#endif /* _ENA_NETMAP_H_ */