Displaying 5 results from an estimated 5 matches for "__tv_to_jiffies".
2007 Apr 18
0
[Bridge] setting STP values via brctl
.../class/net/br0/bridge/hello_time
2999
Much bigger than expected.
I started looking at the source. In the libbridge/libbridge_devif.c
file of brctl, we have the following routine:
int br_set_bridge_hello_time(const char *br, struct timeval *tv)
{
return br_set(br, "hello_time", __tv_to_jiffies(tv),
BRCTL_SET_BRIDGE_HELLO_TIME);
}
Note the tv_to_jiffies() call.
Then, I looked in the kernel file linux/net/bridge/br_sysfs_br.c at
the following function:
static void set_hello_time(struct net_bridge *br, unsigned long val)
{
unsigned long t = clock_t_to_jiffie...
2007 Apr 18
0
[Bridge] compiling bridge-utils-0.9.6
Linux SuSe 9.0, kernel 2.24.21-166...
I got the error
libbridge_misc.c: In function `__tv_to_jiffies':
libbridge_misc.c:33: error: `HZ' undeclared (first use in this function)
libbridge_misc.c:33: error: (Each undeclared identifier is reported only
once
libbridge_misc.c:33: error: for each function it appears in.)
libbridge_misc.c: In function `__jiffies_to_tv':
libbridge_misc.c:40: e...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...} else {
+ fclose(f);
+ return EINVAL;
+ }
+ }
+ return errno;
+ } else {
+ /* fallback to old ioctl */
+ /* not supported for new function */
+ return errno;
+ }
+}
+
int br_set_bridge_forward_delay(const char *br, struct timeval *tv)
{
return br_set(br, "forward_delay", __tv_to_jiffies(tv),
@@ -351,6 +420,16 @@ int br_set_stp_state(const char *br, int stp_state)
return br_set(br, "stp_state", stp_state, BRCTL_SET_BRIDGE_STP_STATE);
}
+int br_set_vepa_mode(const char *br, int vepa_mode)
+{
+ return br_set(br, "vepa_mode", vepa_mode, 0);
+}
+
+int br_set_ve...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...} else {
+ fclose(f);
+ return EINVAL;
+ }
+ }
+ return errno;
+ } else {
+ /* fallback to old ioctl */
+ /* not supported for new function */
+ return errno;
+ }
+}
+
int br_set_bridge_forward_delay(const char *br, struct timeval *tv)
{
return br_set(br, "forward_delay", __tv_to_jiffies(tv),
@@ -351,6 +420,16 @@ int br_set_stp_state(const char *br, int stp_state)
return br_set(br, "stp_state", stp_state, BRCTL_SET_BRIDGE_STP_STATE);
}
+int br_set_vepa_mode(const char *br, int vepa_mode)
+{
+ return br_set(br, "vepa_mode", vepa_mode, 0);
+}
+
+int br_set_ve...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...} else {
+ fclose(f);
+ return EINVAL;
+ }
+ }
+ return errno;
+ } else {
+ /* fallback to old ioctl */
+ /* not supported for new function */
+ return errno;
+ }
+}
+
int br_set_bridge_forward_delay(const char *br, struct timeval *tv)
{
return br_set(br, "forward_delay", __tv_to_jiffies(tv),
@@ -351,6 +420,16 @@ int br_set_stp_state(const char *br, int stp_state)
return br_set(br, "stp_state", stp_state, BRCTL_SET_BRIDGE_STP_STATE);
}
+int br_set_vepa_mode(const char *br, int vepa_mode)
+{
+ return br_set(br, "vepa_mode", vepa_mode, 0);
+}
+
+int br_set_ve...