mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00: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
|