diff mbox

linux-user: manage two new IFLA host message types

Message ID 1477530049-15676-1-git-send-email-laurent@vivier.eu (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Vivier Oct. 27, 2016, 1 a.m. UTC
Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE
in host_to_target_data_link_rtattr().

These two messages are sent by the host kernel when
we use "sudo".

Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and
host kernel 4.7.6-200.fc24.x86_64

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 linux-user/syscall.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Laurent Vivier Nov. 6, 2016, 3:42 p.m. UTC | #1
This is a bug fix: could you take it for 2.8?

Laurent

Le 27/10/2016 à 03:00, Laurent Vivier a écrit :
> Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE
> in host_to_target_data_link_rtattr().
> 
> These two messages are sent by the host kernel when
> we use "sudo".
> 
> Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and
> host kernel 4.7.6-200.fc24.x86_64
> 
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
>  linux-user/syscall.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index db697c0..521bdb5 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2320,6 +2320,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
>      case QEMU_IFLA_GROUP:
>      case QEMU_IFLA_MASTER:
>      case QEMU_IFLA_NUM_VF:
> +    case QEMU_IFLA_GSO_MAX_SEGS:
> +    case QEMU_IFLA_GSO_MAX_SIZE:
>          u32 = RTA_DATA(rtattr);
>          *u32 = tswap32(*u32);
>          break;
>
Laurent Vivier Nov. 11, 2016, 5:42 p.m. UTC | #2
This is a bug fix: could you take it for 2.8?

Laurent

Le 27/10/2016 à 03:00, Laurent Vivier a écrit :
> Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE
> in host_to_target_data_link_rtattr().
> 
> These two messages are sent by the host kernel when
> we use "sudo".
> 
> Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and
> host kernel 4.7.6-200.fc24.x86_64
> 
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
>  linux-user/syscall.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index db697c0..521bdb5 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2320,6 +2320,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
>      case QEMU_IFLA_GROUP:
>      case QEMU_IFLA_MASTER:
>      case QEMU_IFLA_NUM_VF:
> +    case QEMU_IFLA_GSO_MAX_SEGS:
> +    case QEMU_IFLA_GSO_MAX_SIZE:
>          u32 = RTA_DATA(rtattr);
>          *u32 = tswap32(*u32);
>          break;
>
Laurent Vivier Jan. 17, 2017, 11:14 a.m. UTC | #3
Ping?

Laurent

Le 27/10/2016 à 03:00, Laurent Vivier a écrit :
> Add QEMU_IFLA_GSO_MAX_SEGS and QEMU_IFLA_GSO_MAX_SIZE
> in host_to_target_data_link_rtattr().
> 
> These two messages are sent by the host kernel when
> we use "sudo".
> 
> Found with qemu-m68k and Debian etch-m68k (sudo 1.6.8p12-4) and
> host kernel 4.7.6-200.fc24.x86_64
> 
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
>  linux-user/syscall.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index db697c0..521bdb5 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2320,6 +2320,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
>      case QEMU_IFLA_GROUP:
>      case QEMU_IFLA_MASTER:
>      case QEMU_IFLA_NUM_VF:
> +    case QEMU_IFLA_GSO_MAX_SEGS:
> +    case QEMU_IFLA_GSO_MAX_SIZE:
>          u32 = RTA_DATA(rtattr);
>          *u32 = tswap32(*u32);
>          break;
>
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index db697c0..521bdb5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2320,6 +2320,8 @@  static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
     case QEMU_IFLA_GROUP:
     case QEMU_IFLA_MASTER:
     case QEMU_IFLA_NUM_VF:
+    case QEMU_IFLA_GSO_MAX_SEGS:
+    case QEMU_IFLA_GSO_MAX_SIZE:
         u32 = RTA_DATA(rtattr);
         *u32 = tswap32(*u32);
         break;