From patchwork Mon Sep 10 20:04:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Boccassi X-Patchwork-Id: 44535 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FDED4CC3; Mon, 10 Sep 2018 22:04:41 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 544A14CB3 for ; Mon, 10 Sep 2018 22:04:39 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id n2-v6so23267439wrw.7 for ; Mon, 10 Sep 2018 13:04:39 -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=/Io4u5xYs8ONOMd8JAnWt8W7Kqu4U3SIb19iqdGLt/U=; b=nBN2//jsBbNaAg1WvjP9wea1ZdgYT3l95bIHBXi8MXIaYBZNIdGqDFJ0e2ROREaFKz Q9PeqUJiBvB68O949bpvzFkEEHkZKvoXcnhsHt5gaxdJZsFrtVhQBwl6TUErCQ2JenYZ uIsg5fz9P9ubisGTZ2TKPcfWUyAfcpNYVhzEkt+hicZajZnW7+G1VcqJfVx6D7QRIky6 wME5y8VRP7ZbZ4Vdbn+pMCtyiYZfahQEmm2mNPQIWkguMUI9o5JYgNDsUpeFVA+ug0uX 8jObJIdHzaukXLXF05FMx4k+E2zFQuMwgPiilwHnaHntsf8Gzkz8gpkcu1X1KuCOA77q hnwg== X-Gm-Message-State: APzg51ADrxhTvWxW1317bYE+pvdhlMHJx20PED0sAA1bWTe6tOd4RLLK 1t2rTup7cu7mc8PCfNfZNpeUZJd1Qac= X-Google-Smtp-Source: ANB0VdarBB66tP/A05QmTri23XgQr2D6+db3Im5uHyeMB2Y/B5BgA+nPKtuIsoXCvweOTq0p/+SPpw== X-Received: by 2002:adf:ad47:: with SMTP id p65-v6mr16365518wrc.222.1536609878660; Mon, 10 Sep 2018 13:04:38 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id b22-v6sm16699260wme.48.2018.09.10.13.04.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Sep 2018 13:04:37 -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, antosh.shukla@caviumnetworks.com, ashish.gupta@cavium.com, yongwang@vmware.com, bruce.richardson@intel.com, thomas@monjalon.net Date: Mon, 10 Sep 2018 21:04:01 +0100 Message-Id: <20180910200415.8340-2-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 01/15] 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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..ef3c6e1fee --- /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', + 'enum', 'TCA_FLOWER_UNSPEC' ], + [ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h', + 'enum', 'TCA_FLOWER_KEY_VLAN_PRIO' ], + [ 'HAVE_TC_BPF', 'linux/pkt_cls.h', + 'enum', 'TCA_BPF_UNSPEC' ], + [ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h', + 'enum', 'TCA_BPF_FD' ], + [ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h', + 'enum', 'TCA_ACT_BPF_UNSPEC' ], + [ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h', + 'enum', 'TCA_ACT_BPF_FD' ], +] +config = configuration_data() +foreach arg:args + config.set(arg[0], cc.has_header_symbol(arg[1], arg[3])) +endforeach +configure_file(output : 'tap_autoconf.h', configuration : config)