mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 05:58:45 +07:00
64e28b52c7
This patch adds namespace support to the pnet table code. Each network namespace gets its own pnet table. Infiniband and smcd device pnetids can only be modified in the initial namespace. In other namespaces they can still be used as if they were set by the underlying hardware. Signed-off-by: Hans Wippel <hwippel@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
21 lines
342 B
C
21 lines
342 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Shared Memory Communications
|
|
*
|
|
* Network namespace definitions.
|
|
*
|
|
* Copyright IBM Corp. 2018
|
|
*/
|
|
|
|
#ifndef SMC_NETNS_H
|
|
#define SMC_NETNS_H
|
|
|
|
#include "smc_pnet.h"
|
|
|
|
extern unsigned int smc_net_id;
|
|
|
|
/* per-network namespace private data */
|
|
struct smc_net {
|
|
struct smc_pnettable pnettable;
|
|
};
|
|
#endif
|