mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Hans Wippel](/assets/img/avatar_default.png)
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>
20 lines
342 B
C
20 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
|