From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-core 3/3] mlx5: Add packet pacing support Date: Mon, 9 Jan 2017 08:39:43 -0700 Message-ID: <20170109153943.GB29687@obsidianresearch.com> References: <1483893148-8211-1-git-send-email-yishaih@mellanox.com> <1483893148-8211-4-git-send-email-yishaih@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1483893148-8211-4-git-send-email-yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Yishai Hadas Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, bodong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org, majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Sun, Jan 08, 2017 at 06:32:28PM +0200, Yishai Hadas wrote: > + if (attr_mask & MLX5_MODIFY_QP_EX_ATTR_MASK) > + ret = ibv_cmd_modify_qp_ex(qp, attr, attr_mask, > + &cmd_ex, > + sizeof(cmd_ex), sizeof(cmd_ex), > + &resp, > + sizeof(resp), sizeof(resp)); > + else > + ret = ibv_cmd_modify_qp(qp, attr, attr_mask, > + &cmd, sizeof(cmd)); > What is this if doing? Is it trying to retain compat with old kernels? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html