{"id":808209,"url":"http://patchwork.ozlabs.org/api/patches/808209/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1504178199-12410-1-git-send-email-tariqt@mellanox.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504178199-12410-1-git-send-email-tariqt@mellanox.com>","list_archive_url":null,"date":"2017-08-31T11:16:39","name":"[net-next] samples/bpf: Fix compilation issue in redirect dummy program","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"f8d70c70f78ea835c68bca78134559918dd62b94","submitter":{"id":68926,"url":"http://patchwork.ozlabs.org/api/people/68926/?format=json","name":"Tariq Toukan","email":"tariqt@mellanox.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1504178199-12410-1-git-send-email-tariqt@mellanox.com/mbox/","series":[{"id":802,"url":"http://patchwork.ozlabs.org/api/series/802/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=802","date":"2017-08-31T11:16:39","name":"[net-next] samples/bpf: Fix compilation issue in redirect dummy program","version":1,"mbox":"http://patchwork.ozlabs.org/series/802/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/808209/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/808209/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjfxD5Xdbz9sQl\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 21:17:52 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751011AbdHaLRu (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 07:17:50 -0400","from mail-il-dmz.mellanox.com ([193.47.165.129]:38330 \"EHLO\n\tmellanox.co.il\" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org\n\twith ESMTP id S1750884AbdHaLRu (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 31 Aug 2017 07:17:50 -0400","from Internal Mail-Server by MTLPINE1 (envelope-from\n\ttariqt@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 31 Aug 2017 14:17:42 +0300","from dev-l-vrt-206-006.mtl.labs.mlnx\n\t(dev-l-vrt-206-006.mtl.labs.mlnx [10.134.206.6])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7VBHfr1013948;\n\tThu, 31 Aug 2017 14:17:41 +0300"],"From":"Tariq Toukan <tariqt@mellanox.com>","To":"\"David S. Miller\" <davem@davemloft.net>","Cc":"netdev@vger.kernel.org, Eran Ben Elisha <eranbe@mellanox.com>,\n\tJesper Dangaard Brouer <brouer@redhat.com>,\n\tTariq Toukan <tariqt@mellanox.com>","Subject":"[PATCH net-next] samples/bpf: Fix compilation issue in redirect\n\tdummy program","Date":"Thu, 31 Aug 2017 14:16:39 +0300","Message-Id":"<1504178199-12410-1-git-send-email-tariqt@mellanox.com>","X-Mailer":"git-send-email 1.8.3.1","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Fix compilation error below:\n\n$ make samples/bpf/\n\nLLVM ERROR: 'xdp_redirect_dummy' label emitted multiple times to\nassembly file\nmake[1]: *** [samples/bpf/xdp_redirect_kern.o] Error 1\nmake: *** [samples/bpf/] Error 2\n\nFixes: 306da4e685b4 (\"samples/bpf: xdp_redirect load XDP dummy prog on TX device\")\nSigned-off-by: Tariq Toukan <tariqt@mellanox.com>\n---\n samples/bpf/xdp_redirect_kern.c     | 2 +-\n samples/bpf/xdp_redirect_map_kern.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/samples/bpf/xdp_redirect_kern.c b/samples/bpf/xdp_redirect_kern.c\nindex 1c90288d0203..8abb151e385f 100644\n--- a/samples/bpf/xdp_redirect_kern.c\n+++ b/samples/bpf/xdp_redirect_kern.c\n@@ -82,7 +82,7 @@ int xdp_redirect_prog(struct xdp_md *ctx)\n \n /* Redirect require an XDP bpf_prog loaded on the TX device */\n SEC(\"xdp_redirect_dummy\")\n-int xdp_redirect_dummy(struct xdp_md *ctx)\n+int xdp_redirect_dummy_prog(struct xdp_md *ctx)\n {\n \treturn XDP_PASS;\n }\ndiff --git a/samples/bpf/xdp_redirect_map_kern.c b/samples/bpf/xdp_redirect_map_kern.c\nindex 79795d41ad0d..740a529ba84f 100644\n--- a/samples/bpf/xdp_redirect_map_kern.c\n+++ b/samples/bpf/xdp_redirect_map_kern.c\n@@ -84,7 +84,7 @@ int xdp_redirect_map_prog(struct xdp_md *ctx)\n \n /* Redirect require an XDP bpf_prog loaded on the TX device */\n SEC(\"xdp_redirect_dummy\")\n-int xdp_redirect_dummy(struct xdp_md *ctx)\n+int xdp_redirect_dummy_prog(struct xdp_md *ctx)\n {\n \treturn XDP_PASS;\n }\n","prefixes":["net-next"]}