Victor Julien
9b80c21d78
offloading: distinguish between csum and the rest
...
As AF_PACKET handles csum offloading don't check for this type of
offloading. Other methods like pcap and netmap do require it to be
turned off.
Improve disable command suggestion wording.
9 years ago
Victor Julien
45fa25eb0c
offloading: improve checks on FreeBSD
...
Move FreeBSD specific (but not netmap specific) checks from the netmap
code to the general ioctl wrapper code.
Warn from the check functions now, so callers no longer need to.
9 years ago
Victor Julien
b1d191b478
netmap: fix enabling promisc mode on FreeBSD
...
In FreeBSD setting the IFF_PROMISC flag has no effect. Instead we
need to set the IFF_PPROMISC flag.
9 years ago
Victor Julien
6c7bf006b7
netmap: redo config parsing
...
Normally we parse the config per interface only. But to properly
setup the bridge, netmap also needs the config of it's peering
interface. Instead of using a complicated peering scheme like in
afpacket, simply parse the peers config too.
9 years ago
Victor Julien
4c663bb143
netmap: don't check for offloading twice
9 years ago
Victor Julien
2beb39469b
netmap: output cleanup
9 years ago
Victor Julien
4369161b92
netmap: get offloading settings and warn if needed
...
Add FreeBSD lookup function and use the existing code on Linux.
9 years ago
Victor Julien
f446577412
netmap: implement 'threads: auto'
...
Add until function for retrieving RSS RX count from netmap. Use the
RSS count to create the threads.
9 years ago
Aleksey Katargin
2a5f487a16
netmap: close sw ring before hw rings
...
Fix issue #1714
9 years ago
Victor Julien
cae3ce9e1c
netmap: implement capture inject packet flag
9 years ago
gureedo
e4443fac53
netmap: fix issue 1717
...
Use packet pool only without packet allocation.
Wait for N packets available in packet pool before netmap ring fetching.
9 years ago
gureedo
02d4e729c4
netmap: fix log typo
9 years ago
gureedo
f891aadefc
netmap: remove workers zero copy mode restriction between interfaces
...
Rationale: https://github.com/luigirizzo/netmap/issues/126
9 years ago
cardigliano
57e0bd39e9
pkt acq: introduce break loop API
...
This patch adds a new callback PktAcqBreakLoop() in TmModule to let
packet acquisition modules define "break-loop" functions to terminate
the capture loop. This is useful in case of blocking functions that
need special actions to take place in order to stop the execution.
Implement this for PF_RING
10 years ago
gureedo
c31660e5fd
netmap: enable zero-copy mode only when copy-mode is specified.
...
Perform zero-copy checks only when copy-mode is specified.
10 years ago
Aleksey Katargin
caa2438b98
netmap: support SW rings
...
Netmap uses SW rings to send and receive packets from OS.
10 years ago
Aleksey Katargin
823167bde2
netmap: strict check for zero copy mode
...
Netmap does not guarantees that mmap'ed regions for different interfaces would be the same.
10 years ago
Aleksey Katargin
5104b02f32
netmap: fixed autofp mode.
...
Previous implementation does not work with this mode.
10 years ago
Aleksey Katargin
491fca468d
netmap: support non-equal count of Rx and Tx rings on interface.
...
Netmap does not guarantees that NIC will have equal number of transmit and receive rings.
10 years ago
Victor Julien
14466a803d
decode: create util function for basic counter updates
10 years ago
Victor Julien
752f03e7a4
counters: remaining s/SCPerf/Stats/g
10 years ago
Victor Julien
30cce2bd29
counters: s/SCPerfCounterSetUI64/StatsSetUI64/g
10 years ago
Victor Julien
1c0b4ee0ae
counters: s/SCPerfCounterIncr/StatsIncr/g
10 years ago
Victor Julien
8992275b0c
counters: s/SCPerfCounterAddUI64/StatsAddUI64/g
10 years ago
Victor Julien
1ef786e7cb
counters: rename register API calls
...
Also remove 'type' parameter which was always the same.
10 years ago
Victor Julien
b293a4b7d0
counters: remove unused description
10 years ago
Victor Julien
55cfab89e4
counters: SCPerfGetLocalCounterValue cleanup
...
Return u64, update arguments.
10 years ago
Victor Julien
e9b067c1eb
counters: make increment call take threadvars
...
This hides the implementation from the caller.
10 years ago
Victor Julien
9a8bff7d96
counters: threadvars s/sc_perf_pca/perf_private_ctx/g
10 years ago
gureedo
10104066e1
netmap support
11 years ago