mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
In userspace, port name sizes are restricted to IFNAMSIZ which is defined to IF_NAME_SIZE in: C:\Program Files (x86)\Windows Kits\8.1\Include\shared\netioapi.h In the kernel, since IFNAMSIZ was not available, we previously defined a value of 16 for the kernel. This is restrictive for Openstack integration where we use UUID as the name. In this patch, we make the kernel code also use the same value as the userspace. Also updated is the OVS.psm1 powershell script which now allows friendly names to be upto 48 bytes. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
25 lines
828 B
Plaintext
Executable File
25 lines
828 B
Plaintext
Executable File
# This is a "sed" script that transforms <linux/openvswitch.h> into a
|
|
# form that is suitable for inclusion within the Open vSwitch tree on
|
|
# windows system. The transformed header file can be included by windows
|
|
# driver modules.
|
|
|
|
# Add a header warning that this is a generated file.
|
|
1i\
|
|
/* -*- mode: c; buffer-read-only: t -*- */\
|
|
/* Generated automatically from <linux/openvswitch.h> -- do not modify! */\
|
|
\
|
|
\
|
|
|
|
# Avoid using reserved names in header guards.
|
|
s/_LINUX_OPENVSWITCH_H/__OVS_DP_INTERFACE_H_/
|
|
|
|
# and use the appropriate userspace header.
|
|
s,<linux/types\.h>,"Types.h",
|
|
|
|
# Add ETH_ADDR_LEN macro to avoid including userspace packet.h
|
|
s,#include <linux/if_ether\.h>,\n#ifndef ETH_ADDR_LEN \
|
|
#define ETH_ADDR_LEN 6 \n#endif,
|
|
|
|
# Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN.
|
|
s/ETH_ALEN/ETH_ADDR_LEN/
|