aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr/lib/qos
Commit message (Expand)AuthorAgeFilesLines
* /etc/functions.sh => /lib/functions.shJo-Philipp Wich2012-06-051-1/+1
* qos-scripts: replace sfq/red with fq_codel - massively improves latency under...Felix Fietkau2012-05-162-42/+3
* qos-scripts: only use the lower 8 bits for firewall marks, allows coexistence...Jo-Philipp Wich2011-11-032-10/+10
* Add QoS firewall stop script generationJo-Philipp Wich2011-10-271-1/+8
* Add qos_* iptables chain namespace for QoSJo-Philipp Wich2011-10-271-14/+32
* This patch updates qos-scripts to support fair traffic sharing using the SFQ ...Jo-Philipp Wich2011-04-122-10/+15
* qos-scripts: drop the use of IMQ, use ifb and act_connmark insteadFelix Fietkau2011-02-211-16/+23
* qos-scripts: Fix generation of IMQ firewall rules on halfduplex mode (#7800)Vasilis Tsiligiannis2010-10-041-3/+4
* This patch allows the user to specify esfq as the leaf qdisc, as well as pert...Travis Kemen2010-02-262-2/+9
* Reload IMQ only when needed [PATCH] [qos-scripts] Use config_get_bool for hal...Jo-Philipp Wich2009-05-201-3/+3
* Fix packet/connection marking when using halfduplex option This fixes an bug ...Jo-Philipp Wich2009-05-201-1/+1
* Reload modules with parameters specified This patch makes qos-scripts reload ...Jo-Philipp Wich2009-05-201-2/+11
* get rid of a remaining reference to ipp2pFelix Fietkau2009-02-211-8/+0
* Load xt_layer7 for 2.6 kernels (#3269)Florian Fainelli2008-03-271-0/+1
* Here comes the new UCI. Enjoy :)Felix Fietkau2008-02-031-1/+0
* add qos-scripts patch from #2385Felix Fietkau2007-09-201-0/+1
* qos-scripts: add patch for tos and dscp support from #2291Felix Fietkau2007-09-071-0/+39
* remove a warning that has confused a few peopleFelix Fietkau2007-07-111-1/+0
* qos-scripts update:Felix Fietkau2007-06-302-10/+31
* add direction matching patch for qos-scripts from #1708Felix Fietkau2007-06-111-0/+9
* fix error handling in qos-scriptsFelix Fietkau2007-06-021-1/+1
* add qos-scripts connbytes match from #1618Felix Fietkau2007-05-041-0/+5
* qos-scripts update - fix enabling/disabling of interfaces, make the overhead ...Felix Fietkau2007-04-241-13/+18
* fix a small typoFelix Fietkau2007-04-241-2/+2
* qos-scripts: fix RED burst calculationFelix Fietkau2007-04-071-1/+2
* update qos-scripts to v1.1 - rewritten hfsc rate calculationFelix Fietkau2007-04-062-0/+505
ne DECLARE_DOM0_OP dom0_op_t op #endif #define PAGE_SHIFT XC_PAGE_SHIFT #define PAGE_SIZE (1UL << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #define ERROR(_m, _a...) \ do { \ int __saved_errno = errno; \ fprintf(stderr, "ERROR: " _m "\n" , ## _a ); \ errno = __saved_errno; \ } while (0) #define PERROR(_m, _a...) \ do { \ int __saved_errno = errno; \ fprintf(stderr, "ERROR: " _m " (%d = %s)\n" , ## _a , \ __saved_errno, strerror(__saved_errno)); \ errno = __saved_errno; \ } while (0) static inline void safe_munlock(const void *addr, size_t len) { int saved_errno = errno; (void)munlock(addr, len); errno = saved_errno; } static inline int do_privcmd(int xc_handle, unsigned int cmd, unsigned long data) { return ioctl(xc_handle, cmd, data); } static inline int do_xen_hypercall(int xc_handle, privcmd_hypercall_t *hypercall) { return do_privcmd(xc_handle, IOCTL_PRIVCMD_HYPERCALL, (unsigned long)hypercall); } static inline int do_xen_version(int xc_handle, int cmd, void *dest) { DECLARE_HYPERCALL; hypercall.op = __HYPERVISOR_xen_version; hypercall.arg[0] = (unsigned long) cmd; hypercall.arg[1] = (unsigned long) dest; return do_xen_hypercall(xc_handle, &hypercall); } static inline int do_dom0_op(int xc_handle, dom0_op_t *op) { int ret = -1; DECLARE_HYPERCALL; op->interface_version = DOM0_INTERFACE_VERSION; hypercall.op = __HYPERVISOR_dom0_op; hypercall.arg[0] = (unsigned long)op; if ( mlock(op, sizeof(*op)) != 0 ) { PERROR("Could not lock memory for Xen hypercall"); goto out1; } if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 ) { if ( errno == EACCES ) fprintf(stderr, "Dom0 operation failed -- need to" " rebuild the user-space tool set?\n"); } safe_munlock(op, sizeof(*op)); out1: return ret; } /* * ioctl-based mfn mapping interface */ /* typedef struct privcmd_mmap_entry { unsigned long va; unsigned long mfn; unsigned long npages; } privcmd_mmap_entry_t; typedef struct privcmd_mmap { int num; domid_t dom; privcmd_mmap_entry_t *entry; } privcmd_mmap_t; */ #endif /* __XC_PRIVATE_H__ */