From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alejandro Lucero Subject: [PATCH 5/6] ethdev: add function for dma mask Date: Tue, 26 Jun 2018 18:37:32 +0100 Message-ID: <1530034653-28299-6-git-send-email-alejandro.lucero@netronome.com> References: <1530034653-28299-1-git-send-email-alejandro.lucero@netronome.com> Cc: stable@dpdk.org, anatoly.burakov@intel.com To: dev@dpdk.org Return-path: In-Reply-To: <1530034653-28299-1-git-send-email-alejandro.lucero@netronome.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This function calls a generic one for ethernet devices. Signed-off-by: Alejandro Lucero --- lib/librte_ether/rte_ethdev.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index eba11ca..e3979e4 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -2799,6 +2799,18 @@ int rte_eth_dev_set_vlan_ether_type(uint16_t port_id, int rte_eth_dev_set_vlan_pvid(uint16_t port_id, uint16_t pvid, int on); /** + * Set global dma mask by a device + * + * @param maskbits + * mask length in bits + * + */ +static inline void +rte_eth_dev_set_dma_mask(uint8_t maskbits) { + rte_eal_set_dma_mask(maskbits); +} + +/** * * Retrieve a burst of input packets from a receive queue of an Ethernet * device. The retrieved packets are stored in *rte_mbuf* structures whose -- 1.9.1