Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp127444ybc; Mon, 11 Nov 2019 21:53:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxwsGQ/VDKSrt33ughQ4tHK/+ghk2L8MCRzjkfG2dyzz/9l44sTPn/ZfsycJo0pp0OUbS1h X-Received: by 2002:a05:6402:12d1:: with SMTP id k17mr21306883edx.188.1573538004108; Mon, 11 Nov 2019 21:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573538004; cv=none; d=google.com; s=arc-20160816; b=TuDce8XB+7+zaUexaLkDnJOigfSYZpg5EsJjJZ4itKiEO29/AMm7xVi8fCXd0xLah8 p7YTGoqzV936MJWDe3NQOfTaWZXYwTupzJpZPR12stx0aXIo6W/vy73lzSYexaQl/6d3 gMhnQu2VaK2zYyIS8G9UcKlKce3SrLjRhh0J7xe4AzS/HkorZdwnoAblMggRe7E4Jp9e g/n5shxPjr3hK712Jsn0SGCIw5aOkR8XNwsXPqKGWc7IRGIEdcP+oa7wS3Di/Srd7n4J 9Xb+0Ee5AGOzQtpy+EBPjaAIKPKarJvIyI7ST8m9I5Qj++B7fGBu+soOpWqkv7alKEWc g2Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :dkim-signature; bh=okQw7B6ttHkOXCh+ySF/sHsO0zOkI33D5WOZ3oZ0w7U=; b=RruoXBG4iCIXKnV/DtHp4miBaVWl9ByPR5Z4pCwl6IBw/59mv6QAmyMvI+bKJW8FCT cxGb8v8YbTjT1TI7C3sZOwQFabOwWJAT63nGKKn8SpUGatzxl2tKJbE5DUzCYiHQHk+Z 6BGfrTsuAcGSP//tOmOiYOvyx47/uj6Czr1X9wRPKHm1yCwnLdormXaatvvgcVBL3Ntd KCIb5dhkq8UTqvfo5ZrxfSwVlbkxG1j/4usRbzdUTXyfkcML26V29CcJUyPj6JXcM0Rl qlkC/9SqesNt0U03ssGgpNdzQv+TPS3u2OTQBNzxVHpyaMLPxbpumwTICEO3+JLnjjFK yZ/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NsDKEfew; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si11930857edr.117.2019.11.11.21.53.00; Mon, 11 Nov 2019 21:53:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NsDKEfew; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727041AbfKLFu7 (ORCPT + 99 others); Tue, 12 Nov 2019 00:50:59 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:45410 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725775AbfKLFu6 (ORCPT ); Tue, 12 Nov 2019 00:50:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573537857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=okQw7B6ttHkOXCh+ySF/sHsO0zOkI33D5WOZ3oZ0w7U=; b=NsDKEfewAaPFbQU1ddl1QOTOLCKvPG0GaCV9AGBCNnf58wQ+JN6DbrqvKoR3A5pAIGbYIM tJGv/VQ57HJTdxIyfaucBoj6rTU0K1f271VJT0n1Xr7QBmhkq+ejFXvfw+8A5UeeDrkjjA COCExRVYRexrAmMeIKVbax3RBLmRGII= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-127-ek_CHtHyN5uiV7QJTlY1Pg-1; Tue, 12 Nov 2019 00:50:53 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E06A1005500; Tue, 12 Nov 2019 05:50:52 +0000 (UTC) Received: from localhost (ovpn-112-54.rdu2.redhat.com [10.10.112.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id F24F761071; Tue, 12 Nov 2019 05:50:48 +0000 (UTC) Date: Mon, 11 Nov 2019 21:50:47 -0800 (PST) Message-Id: <20191111.215047.316217567209805516.davem@redhat.com> To: po.liu@nxp.com Cc: claudiu.manoil@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, vinicius.gomes@intel.com, vladimir.oltean@nxp.com, alexandru.marginean@nxp.com, xiaoliang.yang_1@nxp.com, roy.zang@nxp.com, mingkai.hu@nxp.com, jerry.huang@nxp.com, leoyang.li@nxp.com Subject: Re: [net-next, 1/2] enetc: Configure the Time-Aware Scheduler via tc-taprio offload From: David Miller In-Reply-To: <20191111042715.13444-1-Po.Liu@nxp.com> References: <20191111042715.13444-1-Po.Liu@nxp.com> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: ek_CHtHyN5uiV7QJTlY1Pg-1 X-Mimecast-Spam-Score: 0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po Liu Date: Mon, 11 Nov 2019 04:41:26 +0000 > +fsl-enetc-$(CONFIG_NET_SCH_TAPRIO) +=3D enetc_qos.o Code is Kconfig guarded. > +=09case TC_SETUP_QDISC_TAPRIO: > +=09=09return enetc_setup_tc_taprio(ndev, type_data); Yet invoked unconditionally. I can see just by reading your code that various configurations will result in link errors. ... > +int enetc_setup_tc_taprio(struct net_device *ndev, void *type_data) > +{ > +=09struct tc_taprio_qopt_offload *taprio =3D type_data; > +=09struct enetc_ndev_priv *priv =3D netdev_priv(ndev); > +=09int i; > + > +=09for (i =3D 0; i < priv->num_tx_rings; i++) > +=09=09enetc_set_bdr_prio(&priv->si->hw, > +=09=09=09=09 priv->tx_ring[i]->index, > +=09=09=09=09 taprio->enable ? i : 0); > + > +=09return enetc_setup_taprio(ndev, taprio); > +} > --=20 > 2.17.1 >=20