From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B52FCC282C4 for ; Tue, 5 Feb 2019 00:05:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 850542083B for ; Tue, 5 Feb 2019 00:05:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="DC1Wiupl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727750AbfBEAFL (ORCPT ); Mon, 4 Feb 2019 19:05:11 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:51238 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfBEAFI (ORCPT ); Mon, 4 Feb 2019 19:05:08 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1503bb0146248; Tue, 5 Feb 2019 00:05:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=BbqPewxAJr8AqN4wX3q1WATVig/yext+sop/b2AMxoM=; b=DC1WiuploXwr9PwDlvDZ3s6sstRI/cDq7T40p4kLmmXnDzvDepaXeM6hTHMrQLftlvcI 6ICWDLZvnDD+362VWooBRtSyCrQ4YHHd0iRYgax0sDu0flugfu/evFdYN3jkds32L64O FMfvMwxYCYlgl2eKaiEd7p88/9nt7KuxX1dIjnMbf2p5t59FDpb5FluTPv7USst2kjB+ lYu/5Qtn0tZAkcDn3yq6mrH242BdbloDf7WUXiPb5dPD1dCI3I/0KiJ3n+DOPz/nkIBZ TIrj9MPIY7L5xEG8ulRINH3dQMzVbhDzfpRlV9wXZ3uu5706vQhyNk6S5rK04o4omEB7 ug== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2qd97er8mh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Feb 2019 00:05:05 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x1504xSe027934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Feb 2019 00:04:59 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1504wdN012863; Tue, 5 Feb 2019 00:04:59 GMT Received: from aserv0022.oracle.com (/10.11.38.116) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 05 Feb 2019 00:04:57 +0000 From: Santosh Shilimkar To: netdev@vger.kernel.org, davem@davemloft.net Cc: yanjun.zhu@oracle.com, santosh.shilimkar@oracle.com Subject: [net-next][PATCH 0/5] rds: add tos support Date: Mon, 4 Feb 2019 16:04:44 -0800 Message-Id: <1549325089-16572-1-git-send-email-santosh.shilimkar@oracle.com> X-Mailer: git-send-email 1.9.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9157 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902040178 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org RDS applications make use of tos to classify database traffic. This feature has been used in shipping products from 2.6.32 based kernels. Its tied with RDS v4.1 protocol version and the compatibility gets negotiated as part of connections setup. Patchset keeps full backward compatibility using existing connection negotiation scheme. Currently the feature is exploited by RDMA transport and for TCP transport the user tos values are mapped to same default class (0). For RDMA transports, RDMA CM service type API is used to set up different SL(service lanes) and the IB fabric is configured for tos mapping using Subnet Manager(SL to VL mappings). Similarly for ROCE fabric, user priority is mapped with different DSCP code points which are associated with different switch queues in the fabric. The original code was developed by Bang Nguyen in downstream kernel back in 2.6.32 kernel days and it has evolved significantly over period of time. Thanks to Yanjun for doing testing with various combinations of host like v3.1<->v4.1, v4.1.<->v3.1, v4.1 upstream to shipping v4.1 etc etc Patchset is also available on below git tree. The following changes since commit cc7335786f7278d66bdcf96d3d411edfcb01be51: socket: fix for Add SO_TIMESTAMP[NS]_NEW (2019-02-03 20:36:11 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux.git for_net-next-5.1/rds-tos-v4 for you to fetch changes up to fd261ce6a30e01ad67c416e2c67e263024b3a6f9: rds: rdma: update rdma transport for tos (2019-02-04 14:59:13 -0800) ---------------------------------------------------------------- Santosh Shilimkar (5): rds: make v3.1 as compat version rds: rdma: add consumer reject rds: add type of service(tos) infrastructure rds: add transport specific tos_map hook rds: rdma: update rdma transport for tos include/uapi/linux/rds.h | 11 ++++++++ net/rds/af_rds.c | 37 ++++++++++++++++++++++++- net/rds/connection.c | 21 ++++++++------ net/rds/ib.c | 11 ++++++++ net/rds/ib.h | 4 ++- net/rds/ib_cm.c | 72 +++++++++++++++++++++++++++--------------------- net/rds/ib_recv.c | 4 +-- net/rds/ib_send.c | 5 ++-- net/rds/rdma_transport.c | 14 ++++++++++ net/rds/rdma_transport.h | 6 ++++ net/rds/rds.h | 14 ++++++++-- net/rds/recv.c | 1 + net/rds/send.c | 7 +++-- net/rds/tcp.c | 8 ++++++ net/rds/tcp_listen.c | 2 +- net/rds/threads.c | 1 + 16 files changed, 166 insertions(+), 52 deletions(-) -- 1.9.1