public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob edd4fee1b4cdd012cbd913256b05df3042ac0aaa 900 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: David Gibson <david@gibson.dropbear.id.au>
 *
 * Passt/pasta interface types and IDs
 */
#ifndef PIF_H
#define PIF_H

/**
 * enum pif_type - Type of passt/pasta interface ("pif")
 *
 * Pifs can be an L4 level channel (sockets) or an L2 level channel (tap device
 * or qemu socket).
 */
enum pif_type {
	/* Invalid or not present pif */
	PIF_NONE = 0,
	/* Host socket interface */
	PIF_HOST,
	/* Qemu socket or namespace tuntap interface */
	PIF_TAP,
	/* Namespace socket interface for splicing */
	PIF_SPLICE,
};
	
/**
 * pif_id - Index for passt/pasta interface ("pif")
 *
 * This represents a specific instance of an interface.  For now, we don't have
 * multiple instances of the same type, so we use the same values as for
 * pif_type here.  That might change in future.
 */
typedef uint8_t pif_id;

#endif /* PIF_H */

debug log:

solving edd4fee ...
found edd4fee in https://archives.passt.top/passt-dev/20231009083013.2837178-3-david@gibson.dropbear.id.au/

applying [1/1] https://archives.passt.top/passt-dev/20231009083013.2837178-3-david@gibson.dropbear.id.au/
diff --git a/pif.h b/pif.h
new file mode 100644
index 0000000..edd4fee

1:32: trailing whitespace.
	
Checking patch pif.h...
Applied patch pif.h cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 edd4fee1b4cdd012cbd913256b05df3042ac0aaa	pif.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).