[PATCH net-next 3/4] s390/diag: add diag26c support for VNIC info

2017-12-27 Thread Julian Wiedmann
With subcode 0x24, diag26c returns all sorts of VNIC-related information. Signed-off-by: Julian Wiedmann Acked-by: Martin Schwidefsky --- arch/s390/include/asm/diag.h | 44 +++- 1 file changed, 43

Re: [PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-21 Thread Martin Schwidefsky
Hi Dave, On Mon, 19 Jun 2017 13:37:43 -0400 (EDT) David Miller wrote: > From: Martin Schwidefsky > Date: Mon, 19 Jun 2017 17:34:25 +0200 > > > We (as in the s390 guys) tend to add __packed to hardware and hypervisor > > structures even if the

[PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-20 Thread Julian Wiedmann
Implement support for the hypervisor diagnose 0x26c ('Access Certain System Information'). It passes a request buffer and a subfunction code, and receives a response buffer and a return code. Also add the scaffolding for the 'MAC Services' subfunction. It may be used by network devices to obtain

Re: [PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-19 Thread David Miller
From: Martin Schwidefsky Date: Mon, 19 Jun 2017 17:34:25 +0200 > We (as in the s390 guys) tend to add __packed to hardware and hypervisor > structures even if the attribute is not strictly necessary. Most of the > diagnose related structures look that way. Dunno if it is

Re: [PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-19 Thread Martin Schwidefsky
Hi Dave, On Mon, 19 Jun 2017 10:47:26 -0400 (EDT) David Miller wrote: > From: Julian Wiedmann > Date: Mon, 19 Jun 2017 13:22:24 +0200 > > > +#define DIAG26C_GET_MAC0x > > +struct diag26c_mac_req { > > + u32 resp_buf_len; > > + u32

Re: [PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-19 Thread David Miller
From: Julian Wiedmann Date: Mon, 19 Jun 2017 13:22:24 +0200 > +#define DIAG26C_GET_MAC 0x > +struct diag26c_mac_req { > + u32 resp_buf_len; > + u32 resp_version; > + u16 op_code; > + u16 devno; > + u8 res[4]; > +}

[PATCH net-next 3/4] s390/diag: add diag26c support

2017-06-19 Thread Julian Wiedmann
Implement support for the hypervisor diagnose 0x26c ('Access Certain System Information'). It passes a request buffer and a subfunction code, and receives a response buffer and a return code. Also add the scaffolding for the 'MAC Services' subfunction. It may be used by network devices to obtain