|
|
@@ -1847,7 +1847,7 @@ static int mlx4_ib_add_dont_trap_rule(struct mlx4_dev *dev,
|
|
|
|
|
|
static struct ib_flow *mlx4_ib_create_flow(struct ib_qp *qp,
|
|
|
struct ib_flow_attr *flow_attr,
|
|
|
- int domain)
|
|
|
+ int domain, struct ib_udata *udata)
|
|
|
{
|
|
|
int err = 0, i = 0, j = 0;
|
|
|
struct mlx4_ib_flow *mflow;
|
|
|
@@ -1865,6 +1865,10 @@ static struct ib_flow *mlx4_ib_create_flow(struct ib_qp *qp,
|
|
|
(flow_attr->type != IB_FLOW_ATTR_NORMAL))
|
|
|
return ERR_PTR(-EOPNOTSUPP);
|
|
|
|
|
|
+ if (udata &&
|
|
|
+ udata->inlen && !ib_is_udata_cleared(udata, 0, udata->inlen))
|
|
|
+ return ERR_PTR(-EOPNOTSUPP);
|
|
|
+
|
|
|
memset(type, 0, sizeof(type));
|
|
|
|
|
|
mflow = kzalloc(sizeof(*mflow), GFP_KERNEL);
|