mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
e888a2e833
SMCD version 2 allows usage of ISM devices with hardware PNETID only, if an Ethernet net_device exists with the same hardware PNETID. This requires to maintain a list of pnetids belonging to Ethernet net_devices, which is covered by this patch. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
22 lines
381 B
C
22 lines
381 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;
|
|
struct smc_pnetids_ndev pnetids_ndev;
|
|
};
|
|
#endif
|