From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 8ABA55A44 for ; Thu, 13 Sep 2018 15:41:47 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id v90-v6so5691074wrc.0 for ; Thu, 13 Sep 2018 06:41:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vIK2YougjlHMNiLlGXTU9fPQjnRpFm7Mvb2Yf7zWIVM=; b=fi2R1FeCTv2UAU7WC2LdY41lS9MSO4+J5Th9qARE1JOgADYAANb25ivi1pBuDoVqXA nf+zc7s+uvI3c/ho40wPsSgGoRMDb+t6DZZT9ouqb0PqqfbUiDHhiiW7SxWk7pXaWsI/ 1Rwq4tKJZhNcKFrsE4UH41A7MyJY0h+EDBCic2UbA52G1ooYH+XBOKYNKlPy6V0Pz2P4 2OvT5HyeFnoCcFcQz25nGdxYZdTmm2a1yd9/8711Fb4rhQRFavKpi51weWnwZREe9w4o /KcxKvqL7rx65o3/87yk6mfw7Wo4J6K2kMx8ZOTe0Rv6BaaEgM313x+7SMzMBIAqHF7i kFog== X-Gm-Message-State: APzg51CQ/6iI22L8e8tLBVzY2/Zi5t6JPMjMYx+YTm8boNAYtJE0lw29 xw0frh8hAlRHV4yqC6Xmu6y82dcBEAo= X-Google-Smtp-Source: ANB0VdaXpAk1CBiZcG9QjfvEkoO8tkyc8Y6OAj2w9IwFHwA3FlkABiGgKQZ7nysTlEQyhAcaPdwkJw== X-Received: by 2002:adf:dd0e:: with SMTP id a14-v6mr5265810wrm.2.1536846106836; Thu, 13 Sep 2018 06:41:46 -0700 (PDT) Received: from localhost ([2001:1be0:110d:fcff:f19f:e27c:a323:8ad8]) by smtp.gmail.com with ESMTPSA id 69-v6sm4573073wmb.27.2018.09.13.06.41.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 06:41:45 -0700 (PDT) From: Luca Boccassi To: dev@dpdk.org Cc: keith.wiles@intel.com, roy.fan.zhang@intel.com, jingjing.wu@intel.com, wenzhuo.lu@intel.com, rasesh.mody@cavium.com, harish.patil@cavium.com, shahed.shaikh@cavium.com, amr.mokhtar@intel.com, shijith.thotton@cavium.com, ssrinivasan@cavium.com, liang.j.ma@intel.com, peter.mccarthy@intel.com, jerin.jacob@caviumnetworks.com, maciej.czekaj@caviumnetworks.com, arybchenko@solarflare.com, santosh.shukla@caviumnetworks.com, ashish.gupta@cavium.com, yongwang@vmware.com, bruce.richardson@intel.com, thomas@monjalon.net Date: Thu, 13 Sep 2018 14:41:32 +0100 Message-Id: <20180913134140.8534-1-bluca@debian.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180910200415.8340-1-bluca@debian.org> References: <20180910200415.8340-1-bluca@debian.org> Subject: [dpdk-dev] [PATCH v3 1/9] build: add Meson file for TAP PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2018 13:41:47 -0000 Use same autoconf generation mechanism as the MLX4/5 PMDs Signed-off-by: Luca Boccassi --- drivers/net/meson.build | 1 + drivers/net/tap/meson.build | 41 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 drivers/net/tap/meson.build diff --git a/drivers/net/meson.build b/drivers/net/meson.build index c7a2d0e7db..b7b4870eb8 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -27,6 +27,7 @@ drivers = ['af_packet', 'sfc', 'softnic', 'szedata2', + 'tap', 'thunderx', 'vhost', 'virtio'] diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build new file mode 100644 index 0000000000..37f65b75c2 --- /dev/null +++ b/drivers/net/tap/meson.build @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 Luca Boccassi + +sources = files( + 'rte_eth_tap.c', + 'tap_bpf_api.c', + 'tap_flow.c', + 'tap_intr.c', + 'tap_netlink.c', + 'tap_tcmsgs.c', +) + +deps = ['bus_vdev', 'gso', 'hash'] + +cflags += '-DTAP_MAX_QUEUES=16' + +# To maintain the compatibility with the make build system +# tap_autoconf.h file is still generated. +# input array for meson symbol search: +# [ "MACRO to define if found", "header for the search", +# "enum/define", "symbol to search" ] +# +args = [ + [ 'HAVE_TC_FLOWER', 'linux/pkt_cls.h', + 'TCA_FLOWER_UNSPEC' ], + [ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_VLAN_PRIO' ], + [ 'HAVE_TC_BPF', 'linux/pkt_cls.h', + 'TCA_BPF_UNSPEC' ], + [ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h', + 'TCA_BPF_FD' ], + [ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h', + 'TCA_ACT_BPF_UNSPEC' ], + [ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h', + 'TCA_ACT_BPF_FD' ], +] +config = configuration_data() +foreach arg:args + config.set(arg[0], cc.has_header_symbol(arg[1], arg[2])) +endforeach +configure_file(output : 'tap_autoconf.h', configuration : config) -- 2.18.0