Date: Mon, 19 Oct 2015 17:41:22 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289596 - head/sys/dev/ntb/ntb_hw Message-ID: <201510191741.t9JHfMgC074043@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Mon Oct 19 17:41:22 2015 New Revision: 289596 URL: https://svnweb.freebsd.org/changeset/base/289596 Log: NTB: Add ntb_mw_clear_trans() missed in r289546 It is just a trivial wrapper around ntb_mw_set_trans(). Authored by: Allen Hubbe Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw.c Mon Oct 19 17:31:51 2015 (r289595) +++ head/sys/dev/ntb/ntb_hw/ntb_hw.c Mon Oct 19 17:41:22 2015 (r289596) @@ -2117,6 +2117,23 @@ ntb_mw_set_trans(struct ntb_softc *ntb, return (0); } +/* + * ntb_mw_clear_trans() - clear the translation of a memory window + * @ntb: NTB device context + * @idx: Memory window number + * + * Clear the translation of a memory window. The peer may no longer access + * local memory through the window. + * + * Return: Zero on success, otherwise an error number. + */ +int +ntb_mw_clear_trans(struct ntb_softc *ntb, unsigned mw_idx) +{ + + return (ntb_mw_set_trans(ntb, mw_idx, 0, 0)); +} + /** * ntb_peer_db_set() - Set the doorbell on the secondary/external side * @ntb: pointer to ntb_softc instance
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510191741.t9JHfMgC074043>