ib/port_attr: report active width as part of port attributes
[mirror/winof/.git] / hw / mlx4 / kernel_patches / core_0020_csum.patch
1 From 11d392f57b2199f5c8071360ebf03c2fc6c4afb2 Mon Sep 17 00:00:00 2001
2 From: Eli Cohen <eli@mellanox.co.il>
3 Date: Tue, 15 Jan 2008 12:15:59 +0200
4 Subject: [PATCH] Add checksum support to ib core
5
6 Signed-off-by: Eli Cohen <eli@mellanox.co.il>
7 ---
8  include/rdma/ib_verbs.h |   13 +++++++++++--
9  1 files changed, 11 insertions(+), 2 deletions(-)
10
11 diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
12 index 11f3960..e35cc29 100644
13 --- a/include/rdma/ib_verbs.h
14 +++ b/include/rdma/ib_verbs.h
15 @@ -95,7 +95,14 @@ enum ib_device_cap_flags {
16         IB_DEVICE_N_NOTIFY_CQ           = (1<<14),
17         IB_DEVICE_ZERO_STAG             = (1<<15),
18         IB_DEVICE_SEND_W_INV            = (1<<16),
19 -       IB_DEVICE_MEM_WINDOW            = (1<<17)
20 +       IB_DEVICE_MEM_WINDOW            = (1<<17),
21 +       /*
22 +        * devices which publish this capability must support insertion of UDP
23 +        * and TCP checksum on outgoing packets and can verify the validity of
24 +        * checksum for incoming packets. Setting this flag implies the driver
25 +        * may set NETIF_F_IP_CSUM.
26 +        */
27 +       IB_DEVICE_IP_CSUM               = (1<<18),
28  };
29  
30  enum ib_atomic_cap {
31 @@ -431,6 +438,7 @@ struct ib_wc {
32         u8                      sl;
33         u8                      dlid_path_bits;
34         u8                      port_num;       /* valid only for DR SMPs on switches */
35 +       int                     csum_ok;
36  };
37  
38  enum ib_cq_notify_flags {
39 @@ -615,7 +623,8 @@ enum ib_send_flags {
40         IB_SEND_FENCE           = 1,
41         IB_SEND_SIGNALED        = (1<<1),
42         IB_SEND_SOLICITED       = (1<<2),
43 -       IB_SEND_INLINE          = (1<<3)
44 +       IB_SEND_INLINE          = (1<<3),
45 +       IB_SEND_IP_CSUM         = (1<<4)
46  };
47  
48  struct ib_sge {
49 -- 
50 1.5.3.8
51