From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by dpdk.org (Postfix) with ESMTP id 3B34D2BDC for ; Sun, 2 Oct 2016 11:12:45 +0200 (CEST) Received: by mail-it0-f51.google.com with SMTP id r192so93320276ita.0 for ; Sun, 02 Oct 2016 02:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KxteSlRjkUI344PZo+RsjhH9zQcZ2p2Ujgaq0t7o0nc=; b=rOAbUlAKQ3krGuHMnHPNX4lUErM5+qpnAsd1ADan3jA5XUy1LEiFG/iOc7W9rs8A1H aD5+HgDm31BH/4rth89KEOlqxyn+JR36It+ydAiOGBLi+99e5//tMjSCpOaPIQoB3Vuk lRm9r3TxjtBaMv08pBkCreVbR+rbY5dNTlXqIci4JLEDdk+PC7Pb+4tLqM3fTjD+qo4A eaILQMPGW+5sgrepGSkIjQuYSW3SaWEGF39bi/Qw5i0sZpaW0RoH4wdGNvhXqzo4TAKr dsM/FTnqamfwViELVbPC7wxIJ0dzgPqhfuNGngrybLVGjinP9WQ6RgnM2UcYprWb1Kto 3YIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KxteSlRjkUI344PZo+RsjhH9zQcZ2p2Ujgaq0t7o0nc=; b=cCpplHcq1ZuLX8AA/LXpGUAdU7P12mZGgABb210QYrAXnlOP1B8mhafDcBJbH4l4j5 dSv/e32G/1X1UmB6J3lqHzp/RRtYDO1V64ipI1j9wZKVqeveY9m57okbyevSTUxF/HvU 5gqpct3TJvurCocFg58F5vtbZ/023qQ9S0kRin0y4Lvqd/4PtxL+11/40+c7VU86uPqk AnIVuhMVQtkLCU2oVsiAqldrK7DLwCxOqfBAljA1acY2vmPq2iH3OYa6cIbJoS0WfLpQ RK9XC8UKy8pBv5fkF1gukqUtva/kx5HCbWYfhqpnMreZM9PvqofptPc+NwkmX8rau1Gz kXjQ== X-Gm-Message-State: AA6/9RkPa6wGx2DvLPA0Yo84dnE5PDO0m0J8UM9W834B6enLo+7uTfPeLAnjhhyu3waN+LYGUrPiX7YU7mQWaA== X-Received: by 10.36.149.193 with SMTP id m184mr11935729itd.94.1475399564531; Sun, 02 Oct 2016 02:12:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.12.47 with HTTP; Sun, 2 Oct 2016 02:12:43 -0700 (PDT) Received: by 10.64.12.47 with HTTP; Sun, 2 Oct 2016 02:12:43 -0700 (PDT) In-Reply-To: <1475250308-5498-2-git-send-email-bernard.iremonger@intel.com> References: <1475250308-5498-1-git-send-email-bernard.iremonger@intel.com> <1475250308-5498-2-git-send-email-bernard.iremonger@intel.com> From: Stephen Hemminger Date: Sun, 2 Oct 2016 02:12:43 -0700 Message-ID: To: Bernard Iremonger Cc: dev@dpdk.org, wenzhuo.lu@intel.com, jerin.jacob@caviumnetworks.com, az5157@att.com, rahul.r.shah@intel.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v3 1/2] librte_ether: add internal callback functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2016 09:12:45 -0000 I know callbacks are needed, in fact even more are necessary. That is why I don't like this design. It expands the API for each event. I think something like the Linux kernel netlink callback mechanism that passes an event and device handle.