Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bnxt/bnxt_re/bnxt_re.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
#define BNXT_RE_MAX_VF_QPS_PER_PF (6 * 1024) | #define BNXT_RE_MAX_VF_QPS_PER_PF (6 * 1024) | ||||
/** | /** | ||||
* min_not_zero - return the minimum that is _not_ zero, unless both are zero | * min_not_zero - return the minimum that is _not_ zero, unless both are zero | ||||
* @x: value1 | * @x: value1 | ||||
* @y: value2 | * @y: value2 | ||||
*/ | */ | ||||
#ifndef min_not_zero | |||||
#define min_not_zero(x, y) ({ \ | #define min_not_zero(x, y) ({ \ | ||||
typeof(x) __x = (x); \ | typeof(x) __x = (x); \ | ||||
typeof(y) __y = (y); \ | typeof(y) __y = (y); \ | ||||
__x == 0 ? __y : ((__y == 0) ? __x : min(__x, __y)); }) | __x == 0 ? __y : ((__y == 0) ? __x : min(__x, __y)); }) | ||||
#endif | |||||
struct ib_mr_init_attr { | struct ib_mr_init_attr { | ||||
int max_reg_descriptors; | int max_reg_descriptors; | ||||
u32 flags; | u32 flags; | ||||
}; | }; | ||||
struct bnxt_re_dev; | struct bnxt_re_dev; | ||||
▲ Show 20 Lines • Show All 961 Lines • Show Last 20 Lines |