+Cc Ferruh for info 19/06/2020 00:47, Thomas Monjalon: > 10/06/2020 11:32, Ophir Munk: > > Shared function mlx5_devx_cmd_mkey_create() reads the OS pagesize by > > calling a Linux API: 'sysconf(_SC_PAGESIZE)'. Wrap this call with a > > shared API 'mlx5_os_get_page_size()' which contains the specific OS > > implementation. > > > > Signed-off-by: Ophir Munk <ophi...@mellanox.com> > > Sorry, I drop this patch while pulling next-net. > > > +/** > > + * Get OS page size > > + * > > + * @return > > + * OS pagesize > > + */ > > +size_t > > +mlx5_os_get_page_size(void) > > +{ > > + return sysconf(_SC_PAGESIZE); > > +} > > The same purpose is achieved with rte_mem_page_size(), > which was added in EAL recently for Windows memory management. > > In general, such basic need should not be implemented in a PMD.
- [dpdk-dev] [PATCH v1 0/8] mlx5 PMD multi OS support - par... Ophir Munk
- [dpdk-dev] [PATCH v1 3/8] net/mlx5: move socket file... Ophir Munk
- [dpdk-dev] [PATCH v1 2/8] net/mlx5: rename ib in nam... Ophir Munk
- [dpdk-dev] [PATCH v1 4/8] net/mlx5: split mlx5 ethde... Ophir Munk
- [dpdk-dev] [PATCH v1 1/8] net/mlx5: remove dv depend... Ophir Munk
- [dpdk-dev] [PATCH v1 7/8] common/mlx5: exclude OS de... Ophir Munk
- Re: [dpdk-dev] [PATCH v1 7/8] common/mlx5: exclu... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v1 7/8] common/mlx5: e... Thomas Monjalon
- [dpdk-dev] [PATCH v1 5/8] net/mlx5: refactor eth dev... Ophir Munk
- [dpdk-dev] [PATCH v1 6/8] common/mlx5: exclude ibv d... Ophir Munk
- [dpdk-dev] [PATCH v1 8/8] net/mlx5: refactor statist... Ophir Munk
- Re: [dpdk-dev] [PATCH v1 0/8] mlx5 PMD multi OS supp... Matan Azrad
- Re: [dpdk-dev] [PATCH v1 0/8] mlx5 PMD multi OS ... Raslan Darawsheh