]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_ntb: MFV e26a5843: Move MW/DB management to if_ntb
authorcem <cem@FreeBSD.org>
Sun, 18 Oct 2015 20:20:57 +0000 (20:20 +0000)
committercem <cem@FreeBSD.org>
Sun, 18 Oct 2015 20:20:57 +0000 (20:20 +0000)
commitc8ef511f2c0bf6629830d96f2f318ce10b240df1
treed880aaf9069f3019e2fe3b1bed5ccbd917cdaac5
parent5d075fd18fef51e7cd9ab30ff1f17d780502b861
if_ntb: MFV e26a5843: Move MW/DB management to if_ntb

This is the last e26a5843 patch.  The general thrust of the rewrite was
to move more responsibility for Memory Window and Doorbell interrupt
management from the ntb_hw driver to if_ntb.

A number of APIs have been added, removed, or replaced.  The old
DB callback mechanism has been excised.  Instead, callers (if_ntb) are
responsible for configuring MWs and handling their interrupts more
directly.

This adds a tunable, hw.ntb.max_mw_size, allowing users to limit the
size of memory windows used by if_ntb (identical to the Linux modparam
of the same name).

Despite attempts to keep mechanical name changes to separate commits,
some have snuck in here.  At least the driver should be much more
similar to the latest Linux one now -- making porting fixes easier.

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division
sys/dev/ntb/if_ntb/if_ntb.c
sys/dev/ntb/ntb_hw/ntb_hw.c
sys/dev/ntb/ntb_hw/ntb_hw.h
sys/dev/ntb/ntb_hw/ntb_regs.h