IB/uverbs: Add more fields to IPv4 flow specification
[cascardo/linux.git] / include / uapi / rdma / ib_user_verbs.h
index 7f035f4..804f086 100644 (file)
@@ -224,6 +224,17 @@ struct ib_uverbs_odp_caps {
        __u32 reserved;
 };
 
+struct ib_uverbs_rss_caps {
+       /* Corresponding bit will be set if qp type from
+        * 'enum ib_qp_type' is supported, e.g.
+        * supported_qpts |= 1 << IB_QPT_UD
+        */
+       __u32 supported_qpts;
+       __u32 max_rwq_indirection_tables;
+       __u32 max_rwq_indirection_table_size;
+       __u32 reserved;
+};
+
 struct ib_uverbs_ex_query_device_resp {
        struct ib_uverbs_query_device_resp base;
        __u32 comp_mask;
@@ -232,6 +243,9 @@ struct ib_uverbs_ex_query_device_resp {
        __u64 timestamp_mask;
        __u64 hca_core_clock; /* in KHZ */
        __u64 device_cap_flags_ex;
+       struct ib_uverbs_rss_caps rss_caps;
+       __u32  max_wq_type_rq;
+       __u32 reserved;
 };
 
 struct ib_uverbs_query_port {
@@ -834,6 +848,10 @@ struct ib_uverbs_flow_spec_eth {
 struct ib_uverbs_flow_ipv4_filter {
        __be32 src_ip;
        __be32 dst_ip;
+       __u8    proto;
+       __u8    tos;
+       __u8    ttl;
+       __u8    flags;
 };
 
 struct ib_uverbs_flow_spec_ipv4 {