Skip to content

Commit

Permalink
Mark pfring_open flags PF_RING_FLOW_OFFLOAD* as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Nov 17, 2023
1 parent 5aa0c56 commit a298c19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 264 deletions.
5 changes: 1 addition & 4 deletions userland/examples/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ LIBS = ${LIBPCAP} ${LIBPFRING} ${LIBPCAP} ${LIBPFRING} `../lib/pfring_conf
# Main targets
#
PFPROGS = pfcount pfcount_multichannel pfsend_multichannel preflect \
pfflow_offload pfbridge alldevs pcap2nspcap \
pfbridge alldevs pcap2nspcap \
pfcount_82599 pfsystest pfsend pflatency pftimeline

PCAPPROGS = pcount pfwrite
Expand Down Expand Up @@ -97,9 +97,6 @@ pfcount_82599: pfcount_82599.o ${LIBPFRING}
preflect: preflect.o ${LIBPFRING}
${CC} ${CFLAGS} preflect.o ${LIBS} -o $@

pfflow_offload: pfflow_offload.o ${LIBPFRING}
${CC} ${CFLAGS} pfflow_offload.o ${LIBS} -o $@

pfsend: pfsend.o ${LIBPFRING}
${CC} ${CFLAGS} pfsend.o ${LIBS} -o $@

Expand Down
256 changes: 0 additions & 256 deletions userland/examples/pfflow_offload.c

This file was deleted.

8 changes: 4 additions & 4 deletions userland/lib/pfring.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ struct __pfring {
#define PF_RING_ZC_NOT_REPROGRAM_RSS (1 << 14) /**< pfring_open() flag: Do not touch/reprogram hw RSS */
#define PF_RING_VSS_APCON_TIMESTAMP (1 << 15) /**< pfring_open() flag: Enable apcon.com/vssmonitoring.com hardware timestamp support+stripping. */
#define PF_RING_ZC_IPONLY_RSS (1 << 16) /**< pfring_open() flag: Compute RSS on src/dst IP only (not 4-tuple) */
#define PF_RING_FLOW_OFFLOAD (1 << 17) /**< pfring_open() flag: Enable hw flow table support when available */
#define PF_RING_FLOW_OFFLOAD_NOUPDATES (1 << 18) /**< pfring_open() flag: Do not send flow updates with PF_RING_FLOW_OFFLOAD (enable support for flows shunting only) */
#define PF_RING_FLOW_OFFLOAD_NORAWDATA (1 << 19) /**< pfring_open() flag: Do not send raw packets with PF_RING_FLOW_OFFLOAD */
#define PF_RING_FLOW_OFFLOAD (1 << 17) /**< pfring_open() flag: Deprecated */
#define PF_RING_FLOW_OFFLOAD_NOUPDATES (1 << 18) /**< pfring_open() flag: Deprecated */
#define PF_RING_FLOW_OFFLOAD_NORAWDATA (1 << 19) /**< pfring_open() flag: Deprecated */
#define PF_RING_L7_FILTERING (1 << 20) /**< pfring_open() flag: Enable L7 filtering support based on PF_RING FT (Flow Table with nDPI support) */
#define PF_RING_DO_NOT_STRIP_FCS (1 << 21) /**< pfring_open() flag: Do not strip the FCS (CRC), when not stripped out by the adapter (on standard adapters use this in combination with 'ethtool -K DEV rx-fcs on rx-all on') */
#define PF_RING_TX_BPF (1 << 22) /**< pfring_open() flag: Evaluate bpf also for transmitted packets (this also force userspace bpf). */
#define PF_RING_FLOW_OFFLOAD_TUNNEL (1 << 23) /**< pfring_open() flag: Enable tunnel dissection with flow offload */
#define PF_RING_FLOW_OFFLOAD_TUNNEL (1 << 23) /**< pfring_open() flag: Deprecated */
#define PF_RING_DISCARD_INJECTED_PKTS (1 << 24) /**< pfring_open() flag: Discard packets injected through the stack module (this avoid loops in MITM applications) */
#define PF_RING_ARISTA_TIMESTAMP (1 << 25) /**< pfring_open() flag: Enable Arista 7150 hardware timestamp support and stripping */
#define PF_RING_METAWATCH_TIMESTAMP (1 << 26) /**< pfring_open() flag: Enable Arista 7130 MetaWatch hardware timestamp support and stripping */
Expand Down

0 comments on commit a298c19

Please sign in to comment.