summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2015-07-09mk: enable next abi previewThomas Monjalon
When a change makes really hard to keep ABI compatibility, instead of waiting next release to break the ABI, it is smoother to introduce the new code as a preview and disable it when packaging. The flag RTE_NEXT_ABI must be used to "ifdef" the new code. When the release is out, a dynamically linked application can use the new shared libraries with the old ABI while developpers can prepare their application for the next ABI by reading the deprecation notice and easily testing the new code. When starting the next release cycle, the "ifdefs" will be removed and the ABI break will be marked by incrementing LIBABIVER. The map files will also be updated. The default value is enabled to be developer compliant. The packagers must disable it as done in pkg/dpdk.spec. When enabled, all shared library numbers are incremented by appending a minor .1 to the old ABI number. In the next release, only impacted libraries will have a major +1 increment. The impacted libraries must provide an alternative map file to use with this option. The ABI policy is updated. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
2015-06-24mbuf: add script to convert code to offset macroCyril Chemparathy
This patch adds a coccinelle (see http://coccinelle.lip6.fr/) transform to use the newly added rte_pktmbuf_mtod_offset() helper. In addition, we add a simple script to apply all available transforms to a codebase. Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-06-12mk, scripts: remove useless blank linesStephen Hemminger
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2015-05-12scripts: fix build in a symlinked directoryOlivier Matz
The script relpath.sh returns the relative path of the first directory from the second directory. It is used to generate relative symlinks, which can be useful if the build directory is embedded in the dpdk directory: the whole dpdk can be moved without breaking the links, which is helpful for an installation. In case the build directory is a symlink, the script was not generating the proper relative path. Fix this by calling "readlink -f" on the arguments. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Tested-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
2015-04-13scripts: test null forwardingThomas Monjalon
This script ease testing of basic initializations and Rx/Tx bursts. It may help to check obvious regressions. In order to run it on a standard development machine, it doesn't use neither hugepages nor real interfaces. The optional parameters are: - build directory (default: build) - coremask (default: 3 i.e. cores 0 and 1) Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-03-17scripts: add ABI checking utilityNeil Horman
There was a request for an abi validation utilty for the ongoing ABI stability work. As it turns out there is a abi compliance checker in development that seems to be under active development and provides fairly detailed ABI compliance reports. Its not yet intellegent enough to understand symbol versioning, but it does provide the ability to identify symbols which have changed between releases, along with details of the change, and offers developers the opportunity to identify which symbols then need versioning and validation for a given update via manual testing. This script automates the use of the compliance checker between two arbitrarily specified tags within the dpdk tree. To execute enter the $RTE_SDK directory and run: ./scripts/validate_abi.sh $GIT_TAG1 $GIT_TAG2 $CONFIG where $GIT_TAG1 and 2 are git tags and $CONFIG is a config specification suitable for passing as the T= variable in the make config command. Note the upstream source for the abi compliance checker is here: http://ispras.linuxbase.org/index.php/ABI_compliance_checker It generates a report for each DSO built from the requested tags that developers can review to find ABI compliance issues. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-03-10scripts: remove useless build toolsThomas Monjalon
test-framework.sh is an old script to check building of some dependencies. testhost is an old app used to check HOSTCC. Let's clean the scripts directory. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-02-25scripts: check features to generate configuration headerAdrien Mazarguil
This script looks for types, macros and functions in header files using compilation options found in the environment (CC, CFLAGS, CPPFLAGS) to define feature macros in a generated header. Useful in combination with external headers that do not provide such macros. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2015-02-09scripts: find areas without maintainerThomas Monjalon
The section titles are filtered to print only those which are not associated with an email address. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-02-09scripts: check wrong patterns in maintainers fileThomas Monjalon
Each F or X pattern is checked and printed if there is no match with a file in the repository. The wildcard must be temporarily replaced to prevent from shell expansion. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-01-28maintainers: start a Linux-style fileThomas Monjalon
This MAINTAINERS file is inspired from the Linux one. Almost all files are split into areas in order to identify maintainers of each DPDK area. Note that a maintainer is not a git tree manager. Candidates are welcome to send a patch to sign up for one or several areas. There is a script to check coverage, especially when adding or moving files. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
2014-11-28scripts: fix newline in configuration with bsd sedDavid Marchand
Use of \n in sed expression is not portable and triggered an invalid configuration on BSD (at least). Replace with an explicit newline. Reported-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2014-11-27scripts: fix symbol overriding in configurationDavid Marchand
When redefining the same symbol in configuration (basically after an inclusion), we need to undefine the previous symbol to avoid "redefined" errors. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-06-19scripts: fix filtering of config comments on bsdBruce Richardson
On BSD 10, the cpp binary behaves a little differently and often leaves lines starting with a space before the inital '#' character. This change ensures those lines are filtered out properly. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-06-11remove trailing whitespacesBruce Richardson
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat]. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> [Thomas: remove spaces before tabs in libs] [Thomas: remove more trailing spaces in non-C files] Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-05-21config: rename "default" configurations as "native"David Marchand
The "default" part in configuration filenames is misleading. Rename this as "native", as this is the RTE_MACHINE that is set in these files. This should make it clearer for people who build DPDK on a system then run it on another one. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2014-02-25update Intel copyright years to 2014Bruce Richardson
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2013-11-19mk: avoid multiple inclusion of rte_config.hIntel
Signed-off-by: Intel
2013-10-09doc: whitespace changes in licensesIntel
Signed-off-by: Intel
2013-07-25update copyright date to 2013Intel
Signed-off-by: Intel
2013-07-25doc: remove remaining referencesIntel
Signed-off-by: Intel
2013-07-05remove version in all filesIntel
Signed-off-by: Intel
2013-03-11first public releasev1.2.3r0Intel
version 1.2.3 Signed-off-by: Intel