Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/t4_netmap.c
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
#include <dev/netmap/netmap_kern.h> | #include <dev/netmap/netmap_kern.h> | ||||
#include "common/common.h" | #include "common/common.h" | ||||
#include "common/t4_regs.h" | #include "common/t4_regs.h" | ||||
#include "common/t4_regs_values.h" | #include "common/t4_regs_values.h" | ||||
extern int fl_pad; /* XXXNM */ | extern int fl_pad; /* XXXNM */ | ||||
SYSCTL_NODE(_hw, OID_AUTO, cxgbe, CTLFLAG_RD, 0, "cxgbe netmap parameters"); | |||||
/* | /* | ||||
* 0 = normal netmap rx | * 0 = normal netmap rx | ||||
* 1 = black hole | * 1 = black hole | ||||
* 2 = supermassive black hole (buffer packing enabled) | * 2 = supermassive black hole (buffer packing enabled) | ||||
*/ | */ | ||||
int black_hole = 0; | int black_hole = 0; | ||||
SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_black_hole, CTLFLAG_RDTUN, &black_hole, 0, | SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_black_hole, CTLFLAG_RDTUN, &black_hole, 0, | ||||
"Sink incoming packets."); | "Sink incoming packets."); | ||||
Show All 12 Lines | |||||
/* | /* | ||||
* Congestion drops. | * Congestion drops. | ||||
* -1: no congestion feedback (not recommended). | * -1: no congestion feedback (not recommended). | ||||
* 0: backpressure the channel instead of dropping packets right away. | * 0: backpressure the channel instead of dropping packets right away. | ||||
* 1: no backpressure, drop packets for the congested queue immediately. | * 1: no backpressure, drop packets for the congested queue immediately. | ||||
*/ | */ | ||||
static int nm_cong_drop = 1; | static int nm_cong_drop = 1; | ||||
TUNABLE_INT("hw.cxgbe.nm_cong_drop", &nm_cong_drop); | SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_cong_drop, CTLFLAG_RDTUN, | ||||
&nm_cong_drop, 0, | |||||
"Congestion control for netmap rx queues (0 = backpressure, 1 = drop"); | |||||
int starve_fl = 0; | int starve_fl = 0; | ||||
SYSCTL_INT(_hw_cxgbe, OID_AUTO, starve_fl, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_cxgbe, OID_AUTO, starve_fl, CTLFLAG_RWTUN, | ||||
&starve_fl, 0, "Don't ring fl db for netmap rx queues."); | &starve_fl, 0, "Don't ring fl db for netmap rx queues."); | ||||
/* | /* | ||||
* Try to process tx credits in bulk. This may cause a delay in the return of | * Try to process tx credits in bulk. This may cause a delay in the return of | ||||
* tx credits and is suitable for bursty or non-stop tx only. | * tx credits and is suitable for bursty or non-stop tx only. | ||||
▲ Show 20 Lines • Show All 1,039 Lines • Show Last 20 Lines |