Page MenuHomeFreeBSD

MANA NIC driver
ClosedPublic

Authored by whu on Jul 12 2021, 1:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 8:38 AM
Unknown Object (File)
Oct 16 2024, 12:56 AM
Unknown Object (File)
Oct 16 2024, 12:56 AM
Unknown Object (File)
Oct 15 2024, 10:03 PM
Unknown Object (File)
Oct 4 2024, 11:38 PM
Unknown Object (File)
Oct 2 2024, 3:08 PM
Unknown Object (File)
Oct 2 2024, 12:24 PM
Unknown Object (File)
Oct 1 2024, 9:55 PM
Subscribers

Details

Summary

MANA is the new network adapter from Microsoft which will be available in Azure public cloud. It provides SRIOV NIC as virtual function to guest OS running on Hyper-V.

The code can be divided into two major parts. Gdma_main.c is the one to bring up the hardware board and drives all underlying hardware queue infrastructure. Mana_en.c contains all main ethernet driver code.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

whu requested review of this revision.Jul 12 2021, 1:58 PM
whu created this revision.
whu added reviewers: decui_microsoft.com, philip.

Thanks for contributing this driver. Is possible to test it already on Hyper-V, or Azure?

In D31150#701307, @gbe wrote:

Thanks for contributing this driver. Is possible to test it already on Hyper-V, or Azure?

The hardware will be publicly available in Azure only. But I don't know when. The code has been tested internally.

Update the review, incorporate some review comments from Dexuan.

  • Rename mana_trc_dbg and likes to mana_dbg, etc.
  • Fixed some comments.
In D31150#712854, @whu wrote:

Update the review, incorporate some review comments from Dexuan.

  • Rename mana_trc_dbg and likes to mana_dbg, etc.
  • Fixed some comments.

Thanks, Wei! I had a quick look at the updated version and it looks good to me.

This revision is now accepted and ready to land.Aug 19 2021, 6:00 PM
dougm added inline comments.
sys/dev/mana/gdma_util.h
179

Initializing this to x, rather than 0, means that it's computing not log2(x) but x+log2(x). Is this deliberate?