From: Mit Matelske <mit@pt.net>
To: shahafs <shahafs@mellanox.com>
Cc: Thomas Monjalon <thomas@monjalon.net>, dev <dev@dpdk.org>,
stephen <stephen@networkplumber.org>,
Yongseok Koh <yskoh@mellanox.com>
Subject: Re: [dpdk-dev] mlx5 under FreeBSD
Date: Mon, 19 Nov 2018 09:09:22 -0600 (CST) [thread overview]
Message-ID: <383796151.782033.1542640162186.JavaMail.zimbra@perftech.com> (raw)
In-Reply-To: <DB7PR05MB44261EE5728D99D3049DA52EC3D80@DB7PR05MB4426.eurprd05.prod.outlook.com>
> Monday, November 19, 2018 1:23 AM, Mit Matelske:
>> Subject: Re: [dpdk-dev] mlx5 under FreeBSD
>>
>> > 15/11/2018 17:48, Mit Matelske:
>> >> Is anyone working to include support for the mlx5 PMD under FreeBSD?
>> >
>> > I think Stephen (Cc) looked at it.
>> >
>> >> I've started down this road by building Linux compatibility layers
>> >> for the required Netlink and Ethtool calls in the driver, but would
>> >> gladly accept help and advice from those much more knowledgeable then
>> myself!
>
> Are you sure netlink and ioctl is all you need?
> Looks like also sysfs stuff, and I am not sure what else is missing from the
> DPDK eal layer, the FreeBSD has many not supported functions.
No, I'm not sure of anything. I've just started focusing on this. I do know to
get it to compile I had to include subsets the following includes:
libmnl/libmnl.h
linux/ethtool.h
linux/netlink.h
linux/neighbour.h
linux/types.h
linux/rtnetlink.h
linux/pkt_cls.h
linux/pkt_sched.h
linux/if_ether.h
linux/tc_act/tc_gact.h
linux/tc_act/tc_mirred.h
My initial goal is to change the DPDK code as little as possible, but that
might not be be possible. You'd have a much better feel for that than me
at this point.
>
> We haven't started to work on it because the majority of our use cases are for
> Linux.
I figured as much.
> Nevertheless, we can help with code reviews and guidance.
Once I get somewhere I will definitely take you up on that.
Thanks!
Mit
>
>> >
>> > Cc also mlx5 maintainers.
>>
>> Thomas-
>>
>> Thanks for looping the correct people in!
>>
>> >
>> >> Though not important, why did Mellanox build a PMD that relied on the
>> >> kernel driver being in place unlike most other PMDs?
>> >
>> > Because it allows to choose which flows go to DPDK and which ones are
>> > processed by the kernel.
>> > Actually, you should ask why other PMDs don't have this feature ;)
>
> +1.
>
>>
>> Very fair response. We actually wrote our own "shim" into the stack for all
>> the relevant drivers we use to both keep the existing ifnet interfaces around
>> and to pass packets to and from the stack from every interface.
>>
>> Your comment matches one of my co-worker's when I explained to him how
>> the mlx5 driver works.
>>
>> Mit
>>
next prev parent reply other threads:[~2018-11-19 15:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-15 16:48 Mit Matelske
2018-11-18 14:38 ` Thomas Monjalon
2018-11-18 23:23 ` Mit Matelske
2018-11-19 6:28 ` Shahaf Shuler
2018-11-19 15:09 ` Mit Matelske [this message]
2018-11-19 17:08 ` Stephen Hemminger
2018-11-21 17:11 ` Mit Matelske
2018-11-21 20:12 ` Stephen Hemminger
2019-03-01 15:58 ` Mit Matelske
2019-03-03 8:43 ` Shahaf Shuler
2019-03-04 16:44 ` Mit Matelske
2019-03-06 14:59 ` Shahaf Shuler
2019-03-06 21:01 ` Mit Matelske
2019-03-07 6:28 ` Shahaf Shuler
2019-03-07 15:27 ` Mit Matelske
2019-03-10 5:57 ` Shahaf Shuler
2019-03-11 14:29 ` Mit Matelske
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=383796151.782033.1542640162186.JavaMail.zimbra@perftech.com \
--to=mit@pt.net \
--cc=dev@dpdk.org \
--cc=shahafs@mellanox.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
--cc=yskoh@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).