Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1477839 Details for
Bug 1526306
ovs-vswitchd service hangs with Error too many open files
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
tool to change the datapath round robin algorithm
ovs_nl.c (text/x-csrc), 1.18 KB, created by
Matteo Croce
on 2018-08-22 10:34:50 UTC
(
hide
)
Description:
tool to change the datapath round robin algorithm
Filename:
MIME Type:
Creator:
Matteo Croce
Created:
2018-08-22 10:34:50 UTC
Size:
1.18 KB
patch
obsolete
>#include <stdio.h> >#include <linux/genetlink.h> >#include <netlink/genl/genl.h> >#include <netlink/genl/ctrl.h> >#include <linux/openvswitch.h> > >#define OVS_DP_ATTR_RR_ALGO 7 > >int main(int argc, char *argv[]) >{ > struct nl_sock *sock; > struct nl_msg *msg; > int family; > char *dp; > int algo; > > if (argc != 3) { > fprintf(stderr, "usage: %s <datapath> <algo>\n", argv[0]); > return 1; > } > > dp = argv[1]; > algo = atoi(argv[2]); > > msg = nlmsg_alloc(); > if (!msg) { > perror("nlmsg_alloc"); > return 1; > } > > sock = nl_socket_alloc(); > if (!sock) { > perror("nl_socket_alloc"); > return 1; > } > > if (genl_connect(sock) < 0) { > perror("genl_connect"); > return 1; > } > > family = genl_ctrl_resolve(sock, OVS_DATAPATH_FAMILY); > if (family < 0) { > perror("genl_ctrl_resolve"); > return 1; > } > > if (!genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, family, 4, 0, OVS_DP_CMD_SET, OVS_DATAPATH_VERSION)) { > perror("genlmsg_put"); > return 1; > } > > if (nla_put_string(msg, OVS_DP_ATTR_NAME, dp) < 0) { > perror("nla_put_string"); > return 1; > } > > if (nla_put_u8(msg, OVS_DP_ATTR_RR_ALGO, algo) < 0) { > perror("nla_put_u8"); > return 1; > } > > if (nl_send_auto(sock, msg) < 0) { > perror("nl_send_auto"); > return 1; > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1526306
:
1383546
|
1452875
|
1454715
| 1477839 |
1477840
|
1483331